Created
June 7, 2018 13:31
-
-
Save PavelPenkov/5b7ec864720da6cd7bc54d1a0b9ddf4d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irb(main):001:0> s = StringIO.new | |
=> #<StringIO:0x00005558cba587e0> | |
irb(main):002:0> s.write('message') | |
=> 7 | |
irb(main):003:0> s.rewind | |
=> 0 | |
irb(main):004:0> s.read | |
=> "message" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment