Module: Ree::Inspectable

Defined in:
lib/ree/inspectable.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



5
6
7
8
9
# File 'lib/ree/inspectable.rb', line 5

def inspect
  object_internals_json = ObjectSpace.dump(self)
  address = JSON.parse(object_internals_json)["address"]
  "#<#{self.class.name}:#{address}>"
end