Class: EnumerableInflater
- Inherits:
-
Object
- Object
- EnumerableInflater
- Defined in:
- lib/fluent/plugin/enumerable_inflater.rb
Constant Summary collapse
- CHUNKSIZE =
1024**2
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ EnumerableInflater
constructor
A new instance of EnumerableInflater.
- #lines ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ EnumerableInflater
Returns a new instance of EnumerableInflater.
8 9 10 |
# File 'lib/fluent/plugin/enumerable_inflater.rb', line 8 def initialize( = {}) @io = [:io] end |
Instance Method Details
#lines ⇒ Object
12 13 14 |
# File 'lib/fluent/plugin/enumerable_inflater.rb', line 12 def lines Enumerator.new { |main_enum| stream_lines(main_enum) } end |