Module: FilterMatcher

Defined in:
lib/filter_matcher/version.rb,
lib/filter_matcher/filter_matcher.rb

Defined Under Namespace

Classes: Matcher

Constant Summary collapse

VERSION =
"0.2.1"

Instance Method Summary collapse

Instance Method Details

#matcher(collection, matcher_type) {|matcher| ... } ⇒ Object

Yields:



87
88
89
90
91
92
# File 'lib/filter_matcher/filter_matcher.rb', line 87

def matcher(collection, matcher_type)
  matcher = Matcher.new(collection, matcher_type)
  yield matcher

  matcher.run
end