Class: RVM::Interpreter::VariableStorage
- Inherits:
-
Object
- Object
- RVM::Interpreter::VariableStorage
- Defined in:
- lib/rvm/interpreter.rb
Instance Attribute Summary collapse
-
#val ⇒ Object
Returns the value of attribute val.
Instance Method Summary collapse
-
#initialize(val = nil, writable = true, &block) ⇒ VariableStorage
constructor
A new instance of VariableStorage.
Constructor Details
#initialize(val = nil, writable = true, &block) ⇒ VariableStorage
Returns a new instance of VariableStorage.
43 44 45 46 47 |
# File 'lib/rvm/interpreter.rb', line 43 def initialize val = nil, writable = true, &block @writable = writable @val = val instance_eval(&block) if block end |
Instance Attribute Details
#val ⇒ Object
Returns the value of attribute val.
42 43 44 |
# File 'lib/rvm/interpreter.rb', line 42 def val @val end |