Class: Bool::Or
- Inherits:
-
Object
- Object
- Bool::Or
- Defined in:
- lib/bool/ast.rb,
ext/bool_ext/ext.c
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Instance Method Summary collapse
- #describe_to(visitor, arg) ⇒ Object
-
#initialize(left, right) ⇒ Or
constructor
A new instance of Or.
Constructor Details
#initialize(left, right) ⇒ Or
Returns a new instance of Or.
32 33 34 |
# File 'lib/bool/ast.rb', line 32 def initialize(left, right) @left, @right = left, right end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
30 31 32 |
# File 'lib/bool/ast.rb', line 30 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
30 31 32 |
# File 'lib/bool/ast.rb', line 30 def right @right end |
Instance Method Details
#describe_to(visitor, arg) ⇒ Object
36 37 38 |
# File 'lib/bool/ast.rb', line 36 def describe_to(visitor, arg) visitor.or(self, arg) end |