Exception: Baba::Return
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Baba::Return
- Defined in:
- lib/baba/interpreter.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Return
constructor
A new instance of Return.
Constructor Details
#initialize(value) ⇒ Return
Returns a new instance of Return.
20 21 22 |
# File 'lib/baba/interpreter.rb', line 20 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
18 19 20 |
# File 'lib/baba/interpreter.rb', line 18 def value @value end |