Module: Arelastic::Arities::Unary
- Included in:
- Nodes::Node
- Defined in:
- lib/arelastic/arities/unary.rb
Defined Under Namespace
Modules: Methods
Instance Method Summary collapse
Instance Method Details
#unary(field, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/arelastic/arities/unary.rb', line 4 def unary(field, = {}) @field = field include Methods singleton_class.class_eval do attr_reader :field end attr_reader :expr end |