Class: Baba::Stmt::RBEval
- Inherits:
-
Object
- Object
- Baba::Stmt::RBEval
- Defined in:
- lib/baba/stmt.rb
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(expression) ⇒ RBEval
constructor
A new instance of RBEval.
Constructor Details
#initialize(expression) ⇒ RBEval
Returns a new instance of RBEval.
78 79 80 |
# File 'lib/baba/stmt.rb', line 78 def initialize(expression) @expression = expression end |
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
76 77 78 |
# File 'lib/baba/stmt.rb', line 76 def expression @expression end |
Instance Method Details
#accept(visitor) ⇒ Object
82 83 84 |
# File 'lib/baba/stmt.rb', line 82 def accept(visitor) visitor.visit_rbeval_stmt(self) end |