Class: Spider::QueryFuncs::BinaryFunction
- Defined in:
- lib/spiderfw/model/query_funcs.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Function
Instance Method Summary collapse
- #elements ⇒ Object
-
#initialize(el1, el2) ⇒ BinaryFunction
constructor
A new instance of BinaryFunction.
Methods inherited from Function
#aggregate?, #as, func_name, #func_name, #has_aggregates?, inherited, #inner_elements, #inspect
Constructor Details
#initialize(el1, el2) ⇒ BinaryFunction
Returns a new instance of BinaryFunction.
139 140 141 142 |
# File 'lib/spiderfw/model/query_funcs.rb', line 139 def initialize(el1, el2) @el1 = el1 @el2 = el2 end |
Instance Method Details
#elements ⇒ Object
144 145 146 |
# File 'lib/spiderfw/model/query_funcs.rb', line 144 def elements [@el1, @el2] end |