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