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.
80 81 82 |
# File 'lib/wgit/dsl.rb', line 80 def follow(xpath) @dsl_follow = xpath end |