Module: Adama::Invoker::ClassMethods
- Defined in:
- lib/adama/invoker.rb
Overview
Our new class methods enable us to set the command list
Instance Method Summary collapse
-
#commands ⇒ Object
internal class method.
-
#invoke(*command_list) ⇒ Object
Public class method.
Instance Method Details
#commands ⇒ Object
internal class method. So we can loop through the commands that have been assigned by the including class.
57 58 59 |
# File 'lib/adama/invoker.rb', line 57 def commands @commands ||= [] end |
#invoke(*command_list) ⇒ Object
51 52 53 |
# File 'lib/adama/invoker.rb', line 51 def invoke(*command_list) @commands = command_list.flatten end |