Returns a string containing a detailed summary of the keys and values.
# File lib/ostruct.rb, line 111
def inspect
str = "#<#{self.class}"
Thread.current[InspectKey] ||= []
if Thread.current[InspectKey].include?(self) then
str << " ..."
else
first = true
for k,v in @table
str << "," unless first
first = false
Thread.current[InspectKey] << v
begin
str << " #{k}=#{v.inspect}"
ensure
Thread.current[InspectKey].pop
end
end
end
str << ">"
end