Class: Morsel::Runner
- Inherits:
-
Object
- Object
- Morsel::Runner
- Defined in:
- lib/morsel/runner.rb
Class Method Summary collapse
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(*args) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
#initialize(*args) ⇒ Runner
Returns a new instance of Runner.
7 8 9 10 |
# File 'lib/morsel/runner.rb', line 7 def initialize(*args) @cmd = args.shift @args = args end |
Class Method Details
.execute(*args) ⇒ Object
3 4 5 |
# File 'lib/morsel/runner.rb', line 3 def self.execute(*args) new(*args).execute end |