Method: Bundler::Thor::Runner#method_missing

Defined in:
lib/bundler/vendor/thor/lib/thor/runner.rb

#method_missing(meth, *args) ⇒ Object

If a command is not found on Bundler::Thor::Runner, method missing is invoked and Bundler::Thor::Runner is then responsible for finding the command in all classes.

[View source]

35
36
37
38
39
40
41
42
# File 'lib/bundler/vendor/thor/lib/thor/runner.rb', line 35

def method_missing(meth, *args)
  meth = meth.to_s
  initialize_thorfiles(meth)
  klass, command = Bundler::Thor::Util.find_class_and_command_by_namespace(meth)
  self.class.handle_no_command_error(command, false) if klass.nil?
  args.unshift(command) if command
  klass.start(args, shell: shell)
end