module Thor::Base::ClassMethods

def method_added(meth)


tracked as tasks by invoking the create_task method.
Fire this callback whenever a method is added. Added methods are
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_instance_methods.include?(meth) ||
                public_instance_methods.include?(meth.to_sym)
  return if @no_tasks || !create_task(meth)
  is_thor_reserved_word?(meth, :task)
  Thor::Base.register_klass_file(self)
end