Class: Bool::Not
- Inherits:
-
Object
- Object
- Bool::Not
- Defined in:
- lib/bool/ast.rb,
ext/bool_ext/ext.c
Instance Attribute Summary collapse
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
Instance Method Summary collapse
- #accept(visitor, arg) ⇒ Object
-
#initialize(operand) ⇒ Not
constructor
A new instance of Not.
Constructor Details
#initialize(operand) ⇒ Not
Returns a new instance of Not.
44 45 46 |
# File 'lib/bool/ast.rb', line 44 def initialize(operand) @operand = operand end |
Instance Attribute Details
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
42 43 44 |
# File 'lib/bool/ast.rb', line 42 def operand @operand end |
Instance Method Details
#accept(visitor, arg) ⇒ Object
48 49 50 |
# File 'lib/bool/ast.rb', line 48 def accept(visitor, arg) visitor.visit_not(self, arg) end |