Class: Crawler::Cinema::Provider
- Inherits:
-
Object
- Object
- Crawler::Cinema::Provider
- 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
#each ⇒ Object
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 |