Class: GtfsReader::Config::Sources
- Inherits:
- BasicObject
- Defined in:
- lib/gtfs_reader/config/sources.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
- #each(&block) ⇒ Object
-
#initialize ⇒ Sources
constructor
A new instance of Sources.
- #method_missing(name, *args, &block) ⇒ Object
Constructor Details
#initialize ⇒ Sources
Returns a new instance of Sources.
6 7 8 |
# File 'lib/gtfs_reader/config/sources.rb', line 6 def initialize @sources = {} end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Method Details
#[](key) ⇒ Object
14 15 16 |
# File 'lib/gtfs_reader/config/sources.rb', line 14 def [](key) @sources[key] end |
#each(&block) ⇒ Object
10 11 12 |
# File 'lib/gtfs_reader/config/sources.rb', line 10 def each(&block) @sources.each &block end |