Class: Filter::Matchers::Hash
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #===(other) ⇒ Object
-
#initialize(pattern) ⇒ Hash
constructor
A new instance of Hash.
Methods inherited from Base
Constructor Details
Instance Method Details
#===(other) ⇒ Object
8 9 10 11 12 |
# File 'lib/filter/matchers/hash.rb', line 8 def ===(other) pattern.all? do |attr, pattern| pattern === attr.call(other) end end |