Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add optional buffer argument to Piperator::IO#read.#17

Merged
lautis merged 1 commit into
lautis:masterfrom
RubyElders:read-buffer
Aug 1, 2023
Merged

Add optional buffer argument to Piperator::IO#read.#17
lautis merged 1 commit into
lautis:masterfrom
RubyElders:read-buffer

Conversation

@simi

@simi simi commented Jul 2, 2023

Copy link
Copy Markdown
Contributor
  • it makes it compatible with IO::copy_stream
file = File.open('abc', 'w')
pio = Piperator::IO.new(["hello", "world"].each)
IO.copy_stream(pio, file)
file.flush
File.read('abc') #=> helloworld

@simi

simi commented Jul 28, 2023

Copy link
Copy Markdown
Contributor Author

@lautis friendly ping

@lautis lautis merged commit 67d15e5 into lautis:master Aug 1, 2023
@lautis

lautis commented Aug 1, 2023

Copy link
Copy Markdown
Owner

Thanks! Released in 1.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants