Class: NMEA::HandlerFilter
- Inherits:
-
Object
- Object
- NMEA::HandlerFilter
- Defined in:
- lib/nmea.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(handler) ⇒ HandlerFilter
constructor
A new instance of HandlerFilter.
- #method_missing(method_name, *args) ⇒ Object
Constructor Details
#initialize(handler) ⇒ HandlerFilter
Returns a new instance of HandlerFilter.
12 13 14 |
# File 'lib/nmea.rb', line 12 def initialize(handler) @handler = handler end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object
15 16 17 |
# File 'lib/nmea.rb', line 15 def method_missing(method_name, *args) @handler.send(method_name, *args) end |