inspect()
public
Returns a string containing a detailed summary of the keys and values.
Show source
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