Return a human-readable representation of the object suitable for debugging.
# File lib/hglib/mixins.rb, line 82
def inspect
return "#<%p:%#016x %s>" % [
self.class,
self.object_id * 2,
self.inspect_details,
]
end
Return the detail portion of the inspect output for this object.
# File lib/hglib/mixins.rb, line 92
def inspect_details
return self.instance_variables.sort.map do |ivar|
"%s=%p" % [ ivar, self.instance_variable_get(ivar) ]
end.join( ', ' )
end