Class: Filter::Matchers::Base
- Inherits:
-
Object
- Object
- Filter::Matchers::Base
- Defined in:
- lib/filter/matchers/base.rb
Instance Attribute Summary collapse
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
Instance Method Summary collapse
- #===(other) ⇒ Object
- #and(other) ⇒ Object (also: #&)
-
#initialize(pattern) ⇒ Base
constructor
A new instance of Base.
- #or(other) ⇒ Object (also: #|)
Constructor Details
#initialize(pattern) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/filter/matchers/base.rb', line 6 def initialize(pattern) @pattern = pattern end |
Instance Attribute Details
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
4 5 6 |
# File 'lib/filter/matchers/base.rb', line 4 def pattern @pattern end |