Class: Spider::QueryFuncs::UnaryFunction
- 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(el) ⇒ UnaryFunction
constructor
A new instance of UnaryFunction.
Methods inherited from Function
#aggregate?, #as, func_name, #func_name, #has_aggregates?, inherited, #inner_elements, #inspect
Constructor Details
#initialize(el) ⇒ UnaryFunction
Returns a new instance of UnaryFunction.
127 128 129 |
# File 'lib/spiderfw/model/query_funcs.rb', line 127 def initialize(el) @el = el end |
Instance Method Details
#elements ⇒ Object
131 132 133 |
# File 'lib/spiderfw/model/query_funcs.rb', line 131 def elements [@el] end |