lib/mattock/task.rb in mattock-0.2.10 vs lib/mattock/task.rb in mattock-0.2.11

- old
+ new

@@ -42,14 +42,16 @@ end def action end +=begin # I continue to look for an alternative here. # The trouble is that deep inside of define_task, Rake actually # instantiates the Task - so in wanting to be able to override members of # Task, it's hard to get the virtues of CascadingDefinition as well (maybe # the virtues could be had without the actual mixin?) +=end def task_class return @task_class if @task_class @task_class = Class.new(self.class) do define_method :initialize, Rake::Task.instance_method(:initialize) end