module Pry::FrozenObjectException - pry-0.10.1 Documentation

# 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 52
    def self.===(exception)
      ["can't modify frozen class/module",
       "can't modify frozen Class",
      ].include?(exception.message)
    end