Class: Standard::LoadsRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/standard/loads_runner.rb

Instance Method Summary collapse

Instance Method Details

#call(command) ⇒ Object

Warning: clever metaprogramming. 99% of the time this is Runners::Rubocop



4
5
6
7
# File 'lib/standard/loads_runner.rb', line 4

def call(command)
  require_relative "runners/#{command}"
  ::Standard::Runners.const_get(command.to_s.capitalize).new
end