зеркало из https://github.com/github/ruby.git
* io.c: rdoc fix for ARGF.lineno; cf. [ruby-core:29048]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
52ebd4b7f4
Коммит
fde37bb6e3
4
io.c
4
io.c
|
@ -6660,7 +6660,7 @@ argf_initialize_copy(VALUE argf, VALUE orig)
|
|||
* call-seq:
|
||||
* ARGF.lineno = number -> nil
|
||||
*
|
||||
* Sets the line number of the current file in +ARGF+ to the given +Integer+.
|
||||
* Sets the line number of +ARGF+ as a whole to the given +Integer+.
|
||||
*
|
||||
* +ARGF+ sets the line number automatically as you read data, so normally
|
||||
* you will not need to set it explicitly. To access the current line number
|
||||
|
@ -6686,7 +6686,7 @@ argf_set_lineno(VALUE argf, VALUE val)
|
|||
* call-seq:
|
||||
* ARGF.lineno -> integer
|
||||
*
|
||||
* Returns the current line number of the current file in +ARGF+. This value
|
||||
* Returns the current line number of ARGF as a whole. This value
|
||||
* can be set manually with +ARGF.lineno=+.
|
||||
*
|
||||
* For example:
|
||||
|
|
Загрузка…
Ссылка в новой задаче