#coding: utf-8 require 'wombat/metadata' require 'wombat/property' require 'wombat/parser' require 'active_support' require 'date' module Wombat module Crawler include Parser extend ActiveSupport::Concern module InstanceMethods def crawl parse self.class.send(:metadata) end def supports_city? end end module ClassMethods def method_missing method, *args, &block metadata.send method, *args, &block end def for_each selector, &block metadata.for_each(selector).instance_eval(&block) if block end def follow_links selector end def supported_cities end def to_ary end private def metadata @metadata ||= Metadata.new end end end end