          # File lib/rake.rb, line 1704
    1704:     def define_task(task_class, *args, &block)
    1705:       task_name, arg_names, deps = resolve_args(args)
    1706:       task_name = task_class.scope_name(@scope, task_name)
    1707:       deps = [deps] unless deps.respond_to?(:to_ary)
    1708:       deps = deps.collect {|d| d.to_s }
    1709:       task = intern(task_class, task_name)
    1710:       task.set_arg_names(arg_names) unless arg_names.empty?
    1711:       task.add_description(@last_description)
    1712:       @last_description = nil
    1713:       task.enhance(deps, &block)
    1714:       task
    1715:     end