Module: Xot::Inspectable

Defined in:
lib/xot/inspectable.rb

Instance Method Summary collapse

Instance Method Details

#inspectString

Returns a string containing a human-readable representation of object.

Returns:

  • (String)

    inspected text



10
11
12
# File 'lib/xot/inspectable.rb', line 10

def inspect()
  "#<#{self.class.name}:0x#{(object_id << 1).to_s(16).rjust(16, '0')}>"
end