Sha256: fc9279349cc399dff421e5ec1958f58e00875fc9e076443eaec41375d26da5a4

Contents?: true

Size: 349 Bytes

Versions: 6

Compression:

Stored size: 349 Bytes

Contents

require 'net/http'
require 'uri'

module RegexpCrawler

  def self.included(base)
    base.extend ClassMethods
  end

  module ClassMethods
    def regexp_crawler(options)
      @crawlers ||= []
      @crawlers << Crawler.new(options)
    end

    def start_crawl
      @crawlers.each do |crawler|
        crawler.start
      end
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
flyerhzm-regexp_crawler-0.1.0 lib/regexp_crawler.rb
flyerhzm-regexp_crawler-0.2.0 lib/regexp_crawler.rb
flyerhzm-regexp_crawler-0.3.0 lib/regexp_crawler.rb
flyerhzm-regexp_crawler-0.4.0 lib/regexp_crawler.rb
flyerhzm-regexp_crawler-0.5.0 lib/regexp_crawler.rb
flyerhzm-regexp_crawler-0.6.0 lib/regexp_crawler.rb