Class: RVM::Interpreter::VariableStorage

Inherits:
Object
  • Object
show all
Defined in:
lib/rvm/interpreter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valObject

Returns the value of attribute val.



42
43
44
# File 'lib/rvm/interpreter.rb', line 42

def val
  @val
end