Module: Wombat::Crawler::ClassMethods

Defined in:
lib/wombat/crawler.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



18
19
20
# File 'lib/wombat/crawler.rb', line 18

def method_missing method, *args, &block
  .send method, *args, &block
end

Instance Method Details



26
27
28
# File 'lib/wombat/crawler.rb', line 26

def follow_links selector

end

#for_each(selector, &block) ⇒ Object



22
23
24
# File 'lib/wombat/crawler.rb', line 22

def for_each selector, &block
  .for_each(selector).instance_eval(&block) if block
end

#to_aryObject



30
31
# File 'lib/wombat/crawler.rb', line 30

def to_ary
end