зеркало из https://github.com/github/ruby.git
io.c: [DOC] IO#puts uses IO#write
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
9e98fa9031
Коммит
70474e9bfc
3
io.c
3
io.c
|
@ -7181,12 +7181,13 @@ io_puts_ary(VALUE ary, VALUE out, int recur)
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* ios.puts(obj, ...) -> nil
|
* ios.puts(obj, ...) -> nil
|
||||||
*
|
*
|
||||||
* Writes the given object(s) to <em>ios</em> as with <code>IO#print</code>.
|
* Writes the given object(s) to <em>ios</em> as with <code>IO#write</code>.
|
||||||
* Writes a newline after any that do not already end
|
* Writes a newline after any that do not already end
|
||||||
* with a newline sequence.
|
* with a newline sequence.
|
||||||
*
|
*
|
||||||
* If called with an array argument, writes each element on a new line.
|
* If called with an array argument, writes each element on a new line.
|
||||||
* If called without arguments, outputs a single newline.
|
* If called without arguments, outputs a single newline.
|
||||||
|
* This doesn't affect $/. ($RS or INPUT_RECORD_SEPARATOR in English.rb)
|
||||||
*
|
*
|
||||||
* $stdout.puts("this", "is", "a", "test")
|
* $stdout.puts("this", "is", "a", "test")
|
||||||
*
|
*
|
||||||
|
|
Загрузка…
Ссылка в новой задаче