Class: RCrawler::Crawl

Inherits:
BasicObject
Defined in:
lib/rcrawler/crawl.rb

Instance Method Summary collapse

Constructor Details

#initializeCrawl

Returns a new instance of Crawl.



5
6
7
# File 'lib/rcrawler/crawl.rb', line 5

def initialize
  @driver = Driver.new
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(action, *args) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/rcrawler/crawl.rb', line 9

def method_missing(action, *args)
  if @driver.respond_to? action
    @driver.send(action, *args)
  else
    super
  end
end