lib/scraper.rb in cyx-scraper-0.2.0 vs lib/scraper.rb in cyx-scraper-0.3.0
- old
+ new
@@ -1,8 +1,13 @@
+require 'rubygems'
+require 'activesupport'
+
module Scraper
autoload :Article, 'scraper/article'
autoload :Youtube, 'scraper/youtube'
-
+ autoload :Vimeo, 'scraper/vimeo'
+ autoload :Modules, 'scraper/modules'
+
HANDLERS = [ :Youtube, :Article ]
end
def Scraper( args = {} )
if handler = Scraper::HANDLERS.detect { |h| Scraper.const_get(h) =~ args }
\ No newline at end of file