Sha256: ae690d5fd2cbaa1dad747b2cee458d2fdbfbe5da6ffd22fae8e851d6c9f0ec3f

Contents?: true

Size: 387 Bytes

Versions: 2

Compression:

Stored size: 387 Bytes

Contents

module ScoreScraper
	module Scrapers
		extend self

		attr_reader :registered
		@registered = []

		def register(class_name, autoload_require)
			ScoreScraper.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.1 lib/score_scraper/scrapers.rb
score-scraper-0.1.0 lib/score_scraper/scrapers.rb