Module: Pawnee::Invocation
- Included in:
- Base
- Defined in:
- lib/pawnee/pawnee/invocation.rb
Instance Method Summary collapse
-
#pawnee_setup_invocations(args = [], options = {}, config = {}) ⇒ Object
This is copied in from thor/invocation.rb#initialize, we can’t extend from a module, so we just move this setup to a method.
Instance Method Details
#pawnee_setup_invocations(args = [], options = {}, config = {}) ⇒ Object
This is copied in from thor/invocation.rb#initialize, we can’t extend from a module, so we just move this setup to a method
6 7 8 9 10 11 |
# File 'lib/pawnee/pawnee/invocation.rb', line 6 def pawnee_setup_invocations(args=[], ={}, config={}) #:nodoc: # TODO: This may be also called as Thor::Invocation since we're calling # super in the main initialize @_invocations = config[:invocations] || Hash.new { |h,k| h[k] = [] } @_initializer = [ args, , config ] end |