Class: MM::Console::SimpleCommand::RuntimeVariables::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/mm/console/simple_command/runtime_variables.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Value



6
7
8
# File 'lib/mm/console/simple_command/runtime_variables.rb', line 6

def initialize(name)
  @name = name
end

Instance Method Details

#execute(runtime) ⇒ Object



10
11
12
13
14
15
# File 'lib/mm/console/simple_command/runtime_variables.rb', line 10

def execute(runtime)
  if runtime[@name].kind_of?(SelectingList)
    runtime[:list] = runtime[@name]
  end
  runtime[@name]
end