Class: FilterParam::AST::Expressions::UnaryExpression
- Inherits:
-
Expression
- Object
- Node
- Expression
- FilterParam::AST::Expressions::UnaryExpression
- Defined in:
- lib/filter_param/ast/expressions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
Attributes inherited from Expression
Instance Method Summary collapse
-
#initialize(operator, operand) ⇒ UnaryExpression
constructor
A new instance of UnaryExpression.
Methods inherited from Node
Constructor Details
#initialize(operator, operand) ⇒ UnaryExpression
Returns a new instance of UnaryExpression.
18 19 20 21 22 |
# File 'lib/filter_param/ast/expressions.rb', line 18 def initialize(operator, operand) super(operator, operand) @operand = operand end |
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
16 17 18 |
# File 'lib/filter_param/ast/expressions.rb', line 16 def operand @operand end |