Class: Cosmicrawler::Em::Crawler

Inherits:
Object
  • Object
show all
Includes:
Cosmicrawler::Em
Defined in:
lib/cosmicrawler/em/crawler.rb

Instance Method Summary collapse

Methods included from Cosmicrawler::Em

#initialize

Instance Method Details

#each(collection, &block) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/cosmicrawler/em/crawler.rb', line 6

def each collection, &block
  raise unless block_given?

  iterate(collection) do |item|
    block.call item
  end

  self
end