Fire this callback whenever a method is added. Added methods are tracked as
commands by
invoking the create_command
method.
# File lib/bundler/vendor/thor/lib/thor/base.rb, line 606
def method_added(meth)
meth = meth.to_s
if meth == "initialize"
initialize_added
return
end
# Return if it's not a public instance method
return unless public_method_defined?(meth.to_sym)
@no_commands ||= false
return if @no_commands || !create_command(meth)
is_thor_reserved_word?(meth, :command)
Bundler::Thor::Base.register_klass_file(self)
end