Module: Delight::Enumerator::CollectionMatcher

Defined in:
lib/delight/enumerator/collection_matcher.rb

Instance Method Summary collapse

Instance Method Details

#collection_matcher(element, **kwargs) ⇒ Object



4
5
6
7
8
# File 'lib/delight/enumerator/collection_matcher.rb', line 4

def collection_matcher(element, **kwargs)
  kwargs.all? do |key, value|
    value === element.public_send(key)
  end
end