Class: Grocer::NotificationReader
- Inherits:
-
Object
- Object
- Grocer::NotificationReader
- Includes:
- Enumerable
- Defined in:
- lib/grocer/notification_reader.rb
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(io) ⇒ NotificationReader
constructor
A new instance of NotificationReader.
Constructor Details
#initialize(io) ⇒ NotificationReader
Returns a new instance of NotificationReader.
8 9 10 |
# File 'lib/grocer/notification_reader.rb', line 8 def initialize(io) @io = io end |
Instance Method Details
#each ⇒ Object
12 13 14 15 16 |
# File 'lib/grocer/notification_reader.rb', line 12 def each while notification = read_notification yield notification end end |