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
#func_name, func_name, inherited, #inner_elements
Constructor Details
#initialize(el1, el2) ⇒ BinaryFunction
Returns a new instance of BinaryFunction.
100 101 102 103 |
# File 'lib/spiderfw/model/query_funcs.rb', line 100 def initialize(el1, el2) @el1 = el1 @el2 = el2 end |
Instance Method Details
#elements ⇒ Object
105 106 107 |
# File 'lib/spiderfw/model/query_funcs.rb', line 105 def elements [@el1, @el2] end |