Class: Archsight::Query::AST::NotOp
- Defined in:
- lib/archsight/query/ast.rb
Overview
Unary NOT operation
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(operand) ⇒ NotOp
constructor
A new instance of NotOp.
Constructor Details
#initialize(operand) ⇒ NotOp
Returns a new instance of NotOp.
45 46 47 |
# File 'lib/archsight/query/ast.rb', line 45 def initialize(operand) @operand = operand end |
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
43 44 45 |
# File 'lib/archsight/query/ast.rb', line 43 def operand @operand end |
Instance Method Details
#accept(visitor) ⇒ Object
49 50 51 |
# File 'lib/archsight/query/ast.rb', line 49 def accept(visitor) visitor.visit_not_op(self) end |