зеркало из https://github.com/github/ruby.git
string.c: docs for Symbol
* string.c: [DOC] adopt call-seq's for Symbol#{match,match?} from String methods; other small improvements for Symbol docs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2e48267ca3
Коммит
4a0eaeeb4d
12
string.c
12
string.c
|
@ -9984,7 +9984,8 @@ sym_match(VALUE sym, VALUE other)
|
|||
|
||||
/*
|
||||
* call-seq:
|
||||
* sym.match(obj [, pos]) -> MatchData or nil
|
||||
* sym.match(pattern) -> matchdata or nil
|
||||
* sym.match(pattern, pos) -> matchdata or nil
|
||||
*
|
||||
* Returns <code>sym.to_s.match</code>.
|
||||
*/
|
||||
|
@ -9997,7 +9998,8 @@ sym_match_m(int argc, VALUE *argv, VALUE sym)
|
|||
|
||||
/*
|
||||
* call-seq:
|
||||
* sym.match?(obj [, pos]) -> true or false
|
||||
* sym.match?(pattern) -> true or false
|
||||
* sym.match?(pattern, pos) -> true or false
|
||||
*
|
||||
* Returns <code>sym.to_s.match?</code>.
|
||||
*/
|
||||
|
@ -10026,8 +10028,8 @@ sym_aref(int argc, VALUE *argv, VALUE sym)
|
|||
|
||||
/*
|
||||
* call-seq:
|
||||
* sym.length -> integer
|
||||
* sym.size -> integer
|
||||
* sym.length -> integer
|
||||
* sym.size -> integer
|
||||
*
|
||||
* Same as <code>sym.to_s.length</code>.
|
||||
*/
|
||||
|
@ -10042,7 +10044,7 @@ sym_length(VALUE sym)
|
|||
* call-seq:
|
||||
* sym.empty? -> true or false
|
||||
*
|
||||
* Returns that _sym_ is :"" or not.
|
||||
* Returns whether _sym_ is :"" or not.
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
|
Загрузка…
Ссылка в новой задаче