Class: Spider::QueryFuncs::UnaryFunction

Inherits:
Function show all
Defined in:
lib/spiderfw/model/query_funcs.rb

Direct Known Subclasses

Length, Substr, Trim

Instance Attribute Summary

Attributes inherited from Function

#mapper_fields

Instance Method Summary collapse

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

#elementsObject



92
93
94
# File 'lib/spiderfw/model/query_funcs.rb', line 92

def elements
    [@el]
end