Class: Mal::HashOfOnlyT
Instance Method Summary collapse
Methods inherited from HashT
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 |
#inspect ⇒ Object
150 151 152 |
# File 'lib/mal.rb', line 150 def inspect 'HashOf(%s)' % @required_keys_to_matchers.inspect[1..-2] end |