Method: Weak::Map#inspect

Defined in:
lib/weak/map.rb

#inspectString Also known as: to_s

Returns a string containing a human-readable representation of the weak set, e.g., "#<Weak::Map {key1 => value1, key2 => value2, ...}>".

Returns:

  • (String)

    a string containing a human-readable representation of the weak set, e.g., "#<Weak::Map {key1 => value1, key2 => value2, ...}>"



485
486
487
# File 'lib/weak/map.rb', line 485

def inspect
  "#<#{self.class} #{_inspect}>"
end