Flowdock
method

define_task

Importance_0
v1_9_3_125 - Show latest stable - 0 notes - Class: TaskManager
define_task(task_class, *args, &block) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rake/task_manager.rb, line 23
    def define_task(task_class, *args, &block)
      task_name, arg_names, deps = resolve_args(args)
      task_name = task_class.scope_name(@scope, task_name)
      deps = [deps] unless deps.respond_to?(:to_ary)
      deps = deps.collect {|d| d.to_s }
      task = intern(task_class, task_name)
      task.set_arg_names(arg_names) unless arg_names.empty?
      if Rake::TaskManager.record_task_metadata
        add_location(task)
        task.add_description(get_description(task))
      end
      task.enhance(deps, &block)
    end
Register or log in to add new notes.