Class: Spider::QueryFuncs::UnaryFunction

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

Instance Attribute Summary

Attributes inherited from Function

#mapper_fields

Instance Method Summary (collapse)

Methods inherited from Function

#aggregate?, func_name, #func_name, #has_aggregates?, inherited, #inner_elements, #inspect

Constructor Details

- (UnaryFunction) initialize(el)



104
105
106
# File 'lib/spiderfw/model/query_funcs.rb', line 104

def initialize(el)
    @el = el
end

Instance Method Details

- (Object) elements



108
109
110
# File 'lib/spiderfw/model/query_funcs.rb', line 108

def elements
    [@el]
end