Class: Scheman::CommandBuilder
- Inherits:
-
Object
- Object
- Scheman::CommandBuilder
- Defined in:
- lib/scheman/command_builder.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Scheman::Commands::Base
-
#initialize(argv) ⇒ CommandBuilder
constructor
A new instance of CommandBuilder.
Constructor Details
#initialize(argv) ⇒ CommandBuilder
Returns a new instance of CommandBuilder.
8 9 10 |
# File 'lib/scheman/command_builder.rb', line 8 def initialize(argv) @argv = argv end |
Class Method Details
.call(*args) ⇒ Object
3 4 5 |
# File 'lib/scheman/command_builder.rb', line 3 def self.call(*args) new(*args).call end |
Instance Method Details
#call ⇒ Scheman::Commands::Base
13 14 15 16 17 |
# File 'lib/scheman/command_builder.rb', line 13 def call command_class.new(@argv) rescue Errors::CommandNotFound terminate end |