Class: Bool::Not
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
Attributes inherited from Node
Instance Method Summary collapse
- #accept(visitor, arg) ⇒ Object
-
#initialize(token, operand) ⇒ Not
constructor
A new instance of Not.
Constructor Details
#initialize(token, operand) ⇒ Not
Returns a new instance of Not.
56 57 58 59 |
# File 'lib/bool/ast.rb', line 56 def initialize(token, operand) super(token) @operand = operand end |
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
54 55 56 |
# File 'lib/bool/ast.rb', line 54 def operand @operand end |
Instance Method Details
#accept(visitor, arg) ⇒ Object
61 62 63 |
# File 'lib/bool/ast.rb', line 61 def accept(visitor, arg) visitor.visit_not(self, arg) end |