class Objects::MHash

Defined in:

objects.cr

Constructors

Instance Method Summary

Instance methods inherited from class Objects::MObject

error? : Bool error?, if_not_error(& : MObject -> MObject | Nil) : MObject | Nil if_not_error, inspect : String inspect, truthy? : Bool truthy?, type_desc : String type_desc

Instance methods inherited from class Object

also(& : self | Nil -> _) : self also, or_else(alternative) or_else

Constructor Detail

def self.new(pairs : Hash(HashKey, HashPair)) #

[View source]

Instance Method Detail

def inspect : String #
Description copied from class Object

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.


[View source]
def pairs : Hash(Objects::HashKey, Objects::HashPair) #

[View source]