-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOC] StringIO doc enhancements #33
Conversation
@nobu, I will merge this only after requesting your approval. Meanwhild, @peterzhu2118 and I can thrash out details? |
* call-seq: | ||
* StringIO.open(string = '', mode = 'r+') {|strio| ... } | ||
* | ||
* Creates a new \StringIO instance formed from +string+ and +mode+; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mode
is defaulted to r
if string
is frozen.
Is this worth to describe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to ::new and ::open..
ext/stringio/stringio.c
Outdated
@@ -494,9 +530,23 @@ strio_get_string(VALUE self) | |||
|
|||
/* | |||
* call-seq: | |||
* strio.string = string -> string | |||
* string = string -> string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this confusing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
* | ||
* Returns true if the stream is at the end of the data (underlying string). | ||
* The stream must be opened for reading or an +IOError+ will be raised. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this sentence needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added (three places).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@nobu, I don't want to merge without your approval. |
@nobu, hoping for your approval. There's more I can do here once this is merged. |
@nobu, you're the maintainer here, right? Any further review? |
@nobu, let me know if you have further comments. |
(ruby/stringio#33) Treated: - ::new - ::open - #string - #string= - #close - #close_read - #close_write - #closed? - #closed_read? - #closed_write? - #eof? ruby/stringio@be9b64d739
(ruby/stringio#33) Treated: - ::new - ::open - #string - #string= - #close - #close_read - #close_write - #closed? - #closed_read? - #closed_write? - #eof? ruby/stringio@be9b64d739
Treated: