[前][次][番号順一覧][スレッド一覧]

ruby-changes:46553

From: stomar <ko1@a...>
Date: Fri, 12 May 2017 03:58:37 +0900 (JST)
Subject: [ruby-changes:46553] stomar:r58668 (trunk): string.c: docs for Symbol

stomar	2017-05-12 03:58:27 +0900 (Fri, 12 May 2017)

  New Revision: 58668

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58668

  Log:
    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.

  Modified files:
    trunk/string.c
Index: string.c
===================================================================
--- string.c	(revision 58667)
+++ string.c	(revision 58668)
@@ -9984,7 +9984,8 @@ sym_match(VALUE sym, VALUE other) https://github.com/ruby/ruby/blob/trunk/string.c#L9984
 
 /*
  * 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 https://github.com/ruby/ruby/blob/trunk/string.c#L9998
 
 /*
  * 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 sy https://github.com/ruby/ruby/blob/trunk/string.c#L10028
 
 /*
  * 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) https://github.com/ruby/ruby/blob/trunk/string.c#L10044
  * call-seq:
  *   sym.empty?   -> true or false
  *
- * Returns that _sym_ is :"" or not.
+ * Returns whether _sym_ is :"" or not.
  */
 
 static VALUE

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]