Top Level Namespace

Defined Under Namespace

Modules: Crawlable

Instance Method Summary collapse

Instance Method Details

#Crawlable(type, *args, &block) ⇒ Object



19
20
21
# File 'lib/crawlable.rb', line 19

def Crawlable(type, *args, &block)
  type.to_s.constantize(*args, &block)
end

#Feed(*args, &block) ⇒ Object



15
16
17
# File 'lib/crawlable.rb', line 15

def Feed(*args, &block)
  Crawlable::Feed.define!(*args, &block)
end

#Sitemap(*args, &block) ⇒ Object



11
12
13
# File 'lib/crawlable.rb', line 11

def Sitemap(*args, &block)
  Crawlable::Sitemap.define!(*args, &block)
end