Class: FilterParam::AST::Expressions::UnaryExpression

Inherits:
Expression
  • Object
show all
Defined in:
lib/filter_param/ast/expressions.rb

Direct Known Subclasses

Group

Instance Attribute Summary collapse

Attributes inherited from Expression

#operands, #operator

Instance Method Summary collapse

Methods inherited from Node

#accept

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

#operandObject (readonly)

Returns the value of attribute operand.



16
17
18
# File 'lib/filter_param/ast/expressions.rb', line 16

def operand
  @operand
end