public Method

TaskManager.intern(task_class, task_name)

Lookup a task. Return an existing task if found, otherwise create a task of the current type.

Source Code

# File rake.rb, line 1625
def intern(task_class, task_name)
  @tasks[task_name.to_s] ||= task_class.new(task_name, self)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.