Class: Chief::Command
- Inherits:
-
Object
- Object
- Chief::Command
- Defined in:
- lib/chief/command.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(*args) ⇒ Object
3 4 5 |
# File 'lib/chief/command.rb', line 3 def self.call(*args) new(*args).call end |
.value(*args) ⇒ Object
7 8 9 |
# File 'lib/chief/command.rb', line 7 def self.value(*args) call(*args).value end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'lib/chief/command.rb', line 11 def call fail NotImplementedError, 'Implement #call in subclass' end |