Parent

Methods

Class/Module Index [+]

Quicksearch

Rake::Application

Public Instance Methods

rename_task(task, oldname, newname) click to toggle source
# File lib/tasks/rake_rename_task.rb, line 24
def rename_task(task, oldname, newname)
    if @tasks.nil?
        @tasks = {}
    end

    @tasks[newname.to_s] = task

    if @tasks.has_key? oldname
        @tasks.delete oldname
    end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.