class Object

Public Instance Methods

__binding__() click to toggle source

Used extensively by ‘sr` – this method is essentially what allows interactive code to reach into the state of objects at runtime.

@return [Binding] a clean ‘Binding` instance representing the current

binding of this object
# File lib/sr/core_patches.rb, line 31
def __binding__
  is_a?(Module) ? class_eval('binding') : binding
end