Class: Saber::Task::Base
- Inherits:
-
Thor
- Object
- Thor
- Saber::Task::Base
- Defined in:
- lib/saber/task/base.rb
Class Method Summary collapse
- .inherited(child) ⇒ Object
-
.invoke(*args) ⇒ Object
delegate to #invoke.
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
17 18 19 20 |
# File 'lib/saber/task/base.rb', line 17 def initialize(*) super self. = self..dup end |
Class Method Details
.inherited(child) ⇒ Object
7 8 9 |
# File 'lib/saber/task/base.rb', line 7 def inherited(child) Task.tasks[child.name.demodulize.underscore] = child end |
.invoke(*args) ⇒ Object
delegate to #invoke
12 13 14 |
# File 'lib/saber/task/base.rb', line 12 def invoke(*args) new.invoke(*args) end |