Class: DaedalSL::OrFilter
- Inherits:
-
BlockQuery
- Object
- BlockQuery
- DaedalSL::OrFilter
- Defined in:
- lib/daedal-sl/or_filter.rb
Instance Attribute Summary
Attributes inherited from BlockQuery
Instance Method Summary collapse
- #filter ⇒ Object
-
#initialize(parent, options) ⇒ OrFilter
constructor
A new instance of OrFilter.
Methods inherited from BlockQuery
Constructor Details
#initialize(parent, options) ⇒ OrFilter
Returns a new instance of OrFilter.
4 5 6 7 |
# File 'lib/daedal-sl/or_filter.rb', line 4 def initialize(parent, ) @query_type = Daedal::Filters::OrFilter super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class DaedalSL::BlockQuery
Instance Method Details
#filter ⇒ Object
9 10 11 12 13 |
# File 'lib/daedal-sl/or_filter.rb', line 9 def filter if (result = yield) @base.filters << result end end |