Sha256: 0f4004cd46c4f4dc78c7ec956c25e96885e7288eeb566c7b2c528c31fb0fde92

Contents?: true

Size: 415 Bytes

Versions: 2

Compression:

Stored size: 415 Bytes

Contents

module ScoreScraper
  module Scrapers
    extend self

    attr_reader :registered
    @registered = []

    def register(class_name, autoload_require)
      ScoreScraper::Scrapers.autoload(class_name, autoload_require)
      self.registered.push(class_name)
    end

  end
end

ScoreScraper::Scrapers.register(:Nba, 'score_scraper/scrapers/nba')
ScoreScraper::Scrapers.register(:Mlb, 'score_scraper/scrapers/mlb')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
score-scraper-0.1.4 lib/score_scraper/scrapers.rb
score-scraper-0.1.3 lib/score_scraper/scrapers.rb