Method: Scruber::Core::Crawler#on_complete
- Defined in:
- lib/scruber/core/crawler.rb
#on_complete(priority = 1, &block) ⇒ void
This method returns an undefined value.
Register callback which will be executed when downloading and parsing will be completed. For example when you need to write results to file, or to close files.
161 162 163 |
# File 'lib/scruber/core/crawler.rb', line 161 def on_complete(priority=1, &block) @on_complete_callbacks.push [priority,block] end |