module Pry::FrozenObjectException

When we try to get a binding for an object, we try to define a method on that Object's singleton class. This doesn't work for “frozen” Object's, and the exception is just a vanilla RuntimeError.

Public Class Methods

===(exception) click to toggle source
# File lib/pry/exceptions.rb, line 57
def self.===(exception)
  [
    "can't modify frozen class/module",
    "can't modify frozen Class",
    "can't modify frozen object"
  ].include?(exception.message)
end