Class: BFS::Bucket::InMem::Writer
- Inherits:
-
StringIO
- Object
- StringIO
- BFS::Bucket::InMem::Writer
- Includes:
- Writer::Mixin
- Defined in:
- lib/bfs/bucket/in_mem.rb
Instance Method Summary collapse
-
#initialize(encoding:, &on_commit) ⇒ Writer
constructor
A new instance of Writer.
Methods included from Writer::Mixin
Constructor Details
#initialize(encoding:, &on_commit) ⇒ Writer
Returns a new instance of Writer.
14 15 16 17 18 19 20 |
# File 'lib/bfs/bucket/in_mem.rb', line 14 def initialize(encoding:, &on_commit) @on_commit = on_commit sio = StringIO.new sio.set_encoding(encoding) super sio end |