Module: Rmega::NotInspectable
- Included in:
- Rmega::Nodes::Node, Session, Storage
- Defined in:
- lib/rmega/not_inspectable.rb
Instance Method Summary collapse
Instance Method Details
#inspect(attributes = {}) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/rmega/not_inspectable.rb', line 3 def inspect(attributes = {}) memaddr = (__send__(:object_id) << 1).to_s(16) string = "#<#{self.class.name}:#{memaddr}" attributes.each { |k, v| string << " #{k}=#{v}" } string << ">" end |