Method: Wgit::DSL#follow

Defined in:
lib/wgit/dsl.rb

#follow(xpath) ⇒ Object

Sets the xpath to be followed when crawl_site or index_site is subsequently called. Calling this method is optional as the default is to follow all <a> href's that point to the site domain. You can also pass follow: to the crawl/index methods directly.

Parameters:

  • xpath (String)

    The xpath which is followed when crawling/indexing a site. Use :default to restore the default follow logic.



80
81
82
# File 'lib/wgit/dsl.rb', line 80

def follow(xpath)
  @dsl_follow = xpath
end