Module: Filter

Defined in:
lib/filter/or.rb,
lib/filter/and.rb,
lib/filter/not.rb,
lib/filter/matcher.rb,
lib/filter/version.rb,
lib/filter/condition.rb,
lib/filter/matchers/nil.rb,
lib/filter/matchers/base.rb,
lib/filter/matchers/hash.rb,
lib/filter/matchers/array.rb,
lib/filter/matchers/class.rb,
lib/filter/matchers/symbol.rb,
lib/filter/matchers/boolean.rb

Defined Under Namespace

Modules: Matcher, Matchers Classes: And, Condition, Not, Or

Constant Summary collapse

VERSION =
"0.0.6"

Class Method Summary collapse

Class Method Details

.and(*patterns) ⇒ Object



14
15
16
# File 'lib/filter/and.rb', line 14

def and(*patterns)
  And.new(*patterns)
end

.match(pattern) ⇒ Object



34
35
36
# File 'lib/filter/matcher.rb', line 34

def match(pattern)
  Matcher.new(pattern)
end

.not(pattern) ⇒ Object



10
11
12
# File 'lib/filter/not.rb', line 10

def not(pattern)
  Not.new(pattern)
end

.or(*patterns) ⇒ Object



14
15
16
# File 'lib/filter/or.rb', line 14

def or(*patterns)
  Or.new(*patterns)
end