PageRenderTime 52ms CodeModel.GetById 30ms app.highlight 1ms RepoModel.GetById 19ms app.codeStats 0ms

/tools/Rake/task.rb

http://github.com/agross/netopenspace
Ruby | 8 lines | 7 code | 1 blank | 0 comment | 0 complexity | 40bc73795fd57f2e658b87de5eb4fce6 MD5 | raw file
1class Rake::Task
2	old_execute = self.instance_method(:execute)
3	
4	define_method(:execute) do |args|
5		puts "\n[#{name}]\n"
6		old_execute.bind(self).call(args)
7	end
8end