Module: Anemone
- Defined in:
- lib/clownfish/anemone_ext.rb
Class Method Summary collapse
-
.crawl_with_clownfish(urls, clownfish) ⇒ Object
Public: Starts an Anemone crawl with a clownfish.
Class Method Details
.crawl_with_clownfish(urls, clownfish) ⇒ Object
Public: Starts an Anemone crawl with a clownfish.
urls - String or Array of Strings telling where to start crawl from. clownfish - Object that conforms to clownfish spec. See README.md.
Returns nothing.
10 11 12 13 14 15 |
# File 'lib/clownfish/anemone_ext.rb', line 10 def self.crawl_with_clownfish(urls, clownfish) adapter = Clownfish::Adapter.new(clownfish) self.crawl(urls, adapter.) do |anemone| adapter.hook_into_anemone(anemone) end end |