Class: FilterParam::AST::Expressions::Expression
- Defined in:
- lib/filter_param/ast/expressions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#operands ⇒ Object
readonly
Returns the value of attribute operands.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
Instance Method Summary collapse
-
#initialize(operator, *operands) ⇒ Expression
constructor
A new instance of Expression.
Methods inherited from Node
Constructor Details
#initialize(operator, *operands) ⇒ Expression
Returns a new instance of Expression.
7 8 9 10 11 12 |
# File 'lib/filter_param/ast/expressions.rb', line 7 def initialize(operator, *operands) super() @operator = operator.to_sym @operands = operands end |
Instance Attribute Details
#operands ⇒ Object (readonly)
Returns the value of attribute operands.
5 6 7 |
# File 'lib/filter_param/ast/expressions.rb', line 5 def operands @operands end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
5 6 7 |
# File 'lib/filter_param/ast/expressions.rb', line 5 def operator @operator end |