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

ruby-changes:43989

From: sho-h <ko1@a...>
Date: Sun, 4 Sep 2016 00:21:51 +0900 (JST)
Subject: [ruby-changes:43989] sho-h:r56062 (trunk): * proc.c: [DOC] fix Object#define_singleton_method and

sho-h	2016-09-04 00:21:43 +0900 (Sun, 04 Sep 2016)

  New Revision: 56062

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

  Log:
    * proc.c: [DOC] fix Object#define_singleton_method and
      main.define_method return value. [ci skip]

  Modified files:
    trunk/ChangeLog
    trunk/proc.c
Index: proc.c
===================================================================
--- proc.c	(revision 56061)
+++ proc.c	(revision 56062)
@@ -1932,8 +1932,8 @@ rb_mod_define_method(int argc, VALUE *ar https://github.com/ruby/ruby/blob/trunk/proc.c#L1932
 
 /*
  *  call-seq:
- *     define_singleton_method(symbol, method) -> new_method
- *     define_singleton_method(symbol) { block } -> proc
+ *     define_singleton_method(symbol, method) -> symbol
+ *     define_singleton_method(symbol) { block } -> symbol
  *
  *  Defines a singleton method in the receiver. The _method_
  *  parameter can be a +Proc+, a +Method+ or an +UnboundMethod+ object.
@@ -1965,8 +1965,8 @@ rb_obj_define_method(int argc, VALUE *ar https://github.com/ruby/ruby/blob/trunk/proc.c#L1965
 }
 
 /*
- *     define_method(symbol, method)     -> new_method
- *     define_method(symbol) { block }   -> proc
+ *     define_method(symbol, method)     -> symbol
+ *     define_method(symbol) { block }   -> symbol
  *
  *  Defines a global function by _method_ or the block.
  */
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 56061)
+++ ChangeLog	(revision 56062)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Sep  4 00:17:55 2016  Sho Hashimoto  <sho-h@r...>
+
+	* proc.c: [DOC] fix Object#define_singleton_method and
+	  main.define_method return value. [ci skip]
+
 Sat Sep  3 11:28:29 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* thread_pthread.c (ruby_init_stack): check stack bounds even if

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

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