Class: Mal::HashOfOnlyT

Inherits:
HashT show all
Defined in:
lib/mal.rb

Instance Method Summary collapse

Methods inherited from HashT

#initialize

Methods inherited from OnlyT

#&, #initialize, #|

Constructor Details

This class inherits a constructor from Mal::HashT

Instance Method Details

#===(value) ⇒ Object



145
146
147
148
# File 'lib/mal.rb', line 145

def ===(value)
  return false unless super
  @required_keys_to_matchers.keys == value.keys
end

#inspectObject



150
151
152
# File 'lib/mal.rb', line 150

def inspect
  'HashOf(%s)' % @required_keys_to_matchers.inspect[1..-2]
end