Class: Streamingly::SerDeIterable
- Inherits:
-
Object
- Object
- Streamingly::SerDeIterable
- Defined in:
- lib/streamingly/serde_iterable.rb
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(iterable) ⇒ SerDeIterable
constructor
A new instance of SerDeIterable.
Constructor Details
#initialize(iterable) ⇒ SerDeIterable
Returns a new instance of SerDeIterable.
4 5 6 |
# File 'lib/streamingly/serde_iterable.rb', line 4 def initialize(iterable) @iterable = iterable end |
Instance Method Details
#each ⇒ Object
8 9 10 11 12 |
# File 'lib/streamingly/serde_iterable.rb', line 8 def each @iterable.each do |line| yield Streamingly::SerDe.from_tabbed_csv(line) end end |