class Knish::DelegateInspector
Public Instance Methods
mapped_attributes()
click to toggle source
# File lib/knish/delegate_inspector.rb, line 11 def mapped_attributes attributes.map do |attr| "@#{attr}=#{object.send(attr).inspect}" end end
memory_location()
click to toggle source
# File lib/knish/delegate_inspector.rb, line 7 def memory_location '0x00%x' % (object.object_id << 1) end
to_inspect()
click to toggle source
# File lib/knish/delegate_inspector.rb, line 3 def to_inspect "#<#{object.class.name}:#{memory_location} #{mapped_attributes.join(' ')}>" end