class Clobber < Array def update ['bin'].each{|dir| CLOBBER.include(dir) if File.exists?(dir) } clean=Clean.new clean.update CLOBBER.include('*.gem') #add '<%Rake::Task[:clobber].reenable%>' add '<%Rake::Task[:clobber].invoke%>' end end