Module: LCBO::CrawlKit::Crawler::ClassMethods

Defined in:
lib/lcbo/crawlkit/crawler.rb

Instance Method Summary collapse

Instance Method Details

#run(params = {}, &emitter) ⇒ Object


15
16
17
18
19
# File 'lib/lcbo/crawlkit/crawler.rb', line 15

def run(params = {}, &emitter)
  crawler = new(&emitter)
  result  = crawler.run(params)
  crawler.respond_to?(:reduce) ? crawler.reduce : result
end