Class: Crawler::Cinema::Provider

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

Defined Under Namespace

Classes: Entries

Constant Summary collapse

PROVIDERS =
[]

Instance Method Summary collapse

Instance Method Details

#eachObject



8
9
10
11
12
13
# File 'lib/crawler/cinema/provider.rb', line 8

def each
  PROVIDERS.each do |provider_name|
    camelized = ActiveSupport::Inflector.camelize("crawler/cinema/providers/#{provider_name.to_s}")
    yield ActiveSupport::Inflector.constantize(camelized)
  end
end