Class: Spider::QueryFuncs::UnaryFunction
- Defined in:
- lib/spiderfw/model/query_funcs.rb
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
#func_name, func_name, inherited, #inner_elements
Constructor Details
#initialize(el) ⇒ UnaryFunction
Returns a new instance of UnaryFunction.
88 89 90 |
# File 'lib/spiderfw/model/query_funcs.rb', line 88 def initialize(el) @el = el end |
Instance Method Details
#elements ⇒ Object
92 93 94 |
# File 'lib/spiderfw/model/query_funcs.rb', line 92 def elements [@el] end |