Module: StackMaster::Command::ClassMethods
- Defined in:
- lib/stack_master/command.rb
Instance Method Summary collapse
Instance Method Details
#command_name ⇒ Object
15 16 17 |
# File 'lib/stack_master/command.rb', line 15 def command_name name.split('::').last.underscore end |
#perform(*args) ⇒ Object
9 10 11 12 13 |
# File 'lib/stack_master/command.rb', line 9 def perform(*args) new(*args).tap do |command| command.perform end end |