Class: Crawler::Cinema::Providers::Entries
- Inherits:
-
Object
- Object
- Crawler::Cinema::Providers::Entries
- Includes:
- Enumerable
- Defined in:
- lib/crawler/cinema/entries.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(&block) ⇒ Entries
constructor
A new instance of Entries.
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 |