class Arachni::BrowserCluster::Jobs::BrowserProvider
Works together with {BrowserCluster#with_browser} to provide the callback for this job with the {Browser} assigned to this job.
@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>
Public Class Methods
new( *args )
click to toggle source
Calls superclass method
Arachni::BrowserCluster::Job::new
# File lib/arachni/browser_cluster/jobs/browser_provider.rb, line 19 def initialize( *args ) super() @args = args end
Public Instance Methods
run()
click to toggle source
# File lib/arachni/browser_cluster/jobs/browser_provider.rb, line 25 def run browser.master.callback_for( self ).call *[browser, @args].flatten.compact end
to_s()
click to toggle source
# File lib/arachni/browser_cluster/jobs/browser_provider.rb, line 29 def to_s "#<#{self.class}:#{object_id} " << "callback=#{browser.master.callback_for( self ) if browser && browser.master} " << "time=#{@time} timed_out=#{timed_out?}>" end
Also aliased as: inspect