lib/arachni/reactor/tasks/base.rb in arachni-reactor-0.1.0.beta3 vs lib/arachni/reactor/tasks/base.rb in arachni-reactor-0.1.0.beta4
- old
+ new
@@ -24,14 +24,14 @@
fail ArgumentError, 'Missing block.' if !block_given?
@task = task
end
- # Calls the {#initialize configured} task and passes `self` to it.
+ # Calls the {#initialize configured} task and passes `args` and self` to it.
#
# @abstract
- def call
+ def call( *args )
fail NotImplementedError
end
# {Tasks#delete Removes} the task from the {#owner}'s list.
def done
@@ -46,11 +46,11 @@
@task.hash
end
private
- def call_task
- @task.call self
+ def call_task( *args )
+ @task.call *([self] + args)
end
end
end