Class: Bool::Var
- Inherits:
-
Object
- Object
- Bool::Var
- Defined in:
- lib/bool/ast.rb,
ext/bool_ext/ext.c
Overview
AST classes defined in bool_ext.jar
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #accept(visitor, arg) ⇒ Object
-
#initialize(name) ⇒ Var
constructor
A new instance of Var.
Constructor Details
#initialize(name) ⇒ Var
Returns a new instance of Var.
8 9 10 |
# File 'lib/bool/ast.rb', line 8 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/bool/ast.rb', line 6 def name @name end |
Instance Method Details
#accept(visitor, arg) ⇒ Object
12 13 14 |
# File 'lib/bool/ast.rb', line 12 def accept(visitor, arg) visitor.visit_var(self, arg) end |