diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-12 02:59:07 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-12 02:59:07 +0000 |
commit | 9ef4e13459c95922e7384194c90b91bf67dd785a (patch) | |
tree | e1bc78edb68a8498dd459df0e72abb9c5280c201 /string.c | |
parent | c37d5e7c778cad02c606cd90992743e8bb4a0185 (diff) | |
download | ruby-9ef4e13459c95922e7384194c90b91bf67dd785a.tar.gz |
* array.c: Document synonymous methods, by windwiny [GH-277]
* bignum.c: ditto
* complex.c: ditto
* dir.c: ditto
* encoding.c: ditto
* enumerator.c: ditto
* numeric.c: ditto
* proc.c: ditto
* re.c: ditto
* string.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -8032,6 +8032,7 @@ sym_casecmp(VALUE sym, VALUE other) /* * call-seq: * sym =~ obj -> fixnum or nil + * sym.match(obj) -> fixnum or nil * * Returns <code>sym.to_s =~ obj</code>. */ @@ -8045,7 +8046,9 @@ sym_match(VALUE sym, VALUE other) /* * call-seq: * sym[idx] -> char - * sym[b, n] -> char + * sym[b, n] -> string + * sym.slice(idx) -> char + * sym.slice(b, n) -> string * * Returns <code>sym.to_s[]</code>. */ @@ -8059,6 +8062,7 @@ sym_aref(int argc, VALUE *argv, VALUE sym) /* * call-seq: * sym.length -> integer + * sym.size -> integer * * Same as <code>sym.to_s.length</code>. */ |