Class: Crawler::Cinema::Providers::Entries

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/crawler/cinema/entries.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Entries

Returns a new instance of Entries.



7
8
9
# File 'lib/crawler/cinema/entries.rb', line 7

def initialize(&block)
  @fnc = block
end

Instance Method Details

#each(&block) ⇒ Object



11
12
13
# File 'lib/crawler/cinema/entries.rb', line 11

def each(&block)
  @fnc.call(block)
end