Module: DTK::Client::CommandHelperMixin

Included in:
CommandBaseThor, DTK::Client::CommonModule::Import, Console
Defined in:
lib/command_helper.rb

Constant Summary collapse

Loaded =
Hash.new

Instance Method Summary collapse

Instance Method Details

#Helper(helper_class_name) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/command_helper.rb', line 20

def Helper(helper_class_name)
  unless Loaded[helper_class_name]
    dtk_nested_require('command_helpers',helper_class_name)
    Loaded[helper_class_name] = true
  end
  CommandHelper.const_get Common::Aux.snake_to_camel_case(helper_class_name.to_s)
end