mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/stringio] [DOC] Tweaks for StringIO#string=
(https://github.com/ruby/stringio/pull/172) https://github.com/ruby/stringio/commit/17ae4daf9a
This commit is contained in:
parent
bd3b44cb0a
commit
d24bb1e761
@ -514,7 +514,7 @@ strio_get_string(VALUE self)
|
||||
* call-seq:
|
||||
* string = other_string -> other_string
|
||||
*
|
||||
* Assigns the underlying string as +other_string+, and sets position to zero;
|
||||
* Replaces the stored string with +other_string+, and sets the position to zero;
|
||||
* returns +other_string+:
|
||||
*
|
||||
* StringIO.open('foo') do |strio|
|
||||
@ -528,7 +528,7 @@ strio_get_string(VALUE self)
|
||||
* "foo"
|
||||
* "bar"
|
||||
*
|
||||
* Related: StringIO#string (returns the underlying string).
|
||||
* Related: StringIO#string (returns the stored string).
|
||||
*/
|
||||
static VALUE
|
||||
strio_set_string(VALUE self, VALUE string)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user