Sha256: 41aa39bb1a30bcfb06a2debd25eac272a466b1c0c5e90f9a3c8d2399efe466c0

Contents?: true

Size: 428 Bytes

Versions: 3

Compression:

Stored size: 428 Bytes

Contents

require 'net/http'
require 'uri'
require 'iconv'
require 'regexp_crawler/http'
require 'regexp_crawler/crawler'

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

3 entries across 3 versions & 1 rubygems

Version Path
flyerhzm-regexp_crawler-0.8.0 lib/regexp_crawler.rb
flyerhzm-regexp_crawler-0.8.1 lib/regexp_crawler.rb
flyerhzm-regexp_crawler-0.8.2 lib/regexp_crawler.rb