Method: Wgit::DSL#use_crawler
- Defined in:
- lib/wgit/dsl.rb
#use_crawler(crawler = nil) {|crawler| ... } ⇒ Wgit::Crawler
Sets and returns the Wgit::Crawler used in subsequent crawls including
indexing. Defaults to Wgit::Crawler.new if not given a param. See the
Wgit::Crawler documentation for more details.
53 54 55 56 57 |
# File 'lib/wgit/dsl.rb', line 53 def use_crawler(crawler = nil) @dsl_crawler = crawler || @dsl_crawler || Wgit::Crawler.new yield @dsl_crawler if block_given? @dsl_crawler end |