Class: GtfsReader::FeedHandlerDsl
- Inherits:
-
Object
- Object
- GtfsReader::FeedHandlerDsl
- Defined in:
- lib/gtfs_reader/feed_handler.rb
Instance Method Summary collapse
-
#initialize(feed_handler) ⇒ FeedHandlerDsl
constructor
A new instance of FeedHandlerDsl.
- #method_missing(filename, *args, &block) ⇒ Object
- #respond_to_missing?(_name, _include_private = false) ⇒ Boolean
Constructor Details
#initialize(feed_handler) ⇒ FeedHandlerDsl
Returns a new instance of FeedHandlerDsl.
25 26 27 |
# File 'lib/gtfs_reader/feed_handler.rb', line 25 def initialize(feed_handler) @feed_handler = feed_handler end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(filename, *args, &block) ⇒ Object
29 30 31 |
# File 'lib/gtfs_reader/feed_handler.rb', line 29 def method_missing(filename, *args, &block) @feed_handler.create_read_handler(filename, *args, &block) end |
Instance Method Details
#respond_to_missing?(_name, _include_private = false) ⇒ Boolean
33 34 35 |
# File 'lib/gtfs_reader/feed_handler.rb', line 33 def respond_to_missing?(_name, _include_private = false) true end |