require 'rubygems' require 'active_support' require 'active_record' require 'nokogiri' require 'open-uri' this = File.dirname(__FILE__) Dir["#{this}/crawlable/*"].each { |c| require c if File.extname(c) == ".rb" } require "#{this}/engine" def Sitemap(*args, &block) Crawlable::Sitemap.define!(*args, &block) end def Feed(*args, &block) Crawlable::Feed.define!(*args, &block) end def Crawlable(type, *args, &block) type.to_s.constantize(*args, &block) end