Class: MM::Console::SimpleCommand::RuntimeVariables::Value
- Inherits:
-
Object
- Object
- MM::Console::SimpleCommand::RuntimeVariables::Value
- Defined in:
- lib/mm/console/simple_command/runtime_variables.rb
Instance Method Summary collapse
- #execute(runtime) ⇒ Object
-
#initialize(name) ⇒ Value
constructor
A new instance of Value.
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 |