[Rake-devel] redefine rake task broken in 0.8.x for a rails app

Jim Weirich jim.weirich at gmail.com
Thu Jan 3 10:09:59 EST 2008

On Jan 3, 2008, at 2:53 AM, Assaf Arkin wrote:

> task('foo').prerequisites.clear

Ha!  Clever!

I was going to suggest Rake::Task['foo'].prerequisites.clear, but  
then realized that although the task method's main purpose is to  
create and enhance tasks, it also returns the task object.  So task 
('foo').prerequisites is perfectly valid.

Good job!

-- Jim Weirich
-- jim.weirich at gmail.com

More information about the Rake-devel mailing list