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

ruby-changes:26638

From: zzak <ko1@a...>
Date: Fri, 4 Jan 2013 11:53:05 +0900 (JST)
Subject: [ruby-changes:26638] zzak:r38689 (trunk): * lib/forwardable.rb: Fix rdoc parameters for ::def_single_delegator.

zzak	2013-01-04 11:52:54 +0900 (Fri, 04 Jan 2013)

  New Revision: 38689

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38689

  Log:
    * lib/forwardable.rb: Fix rdoc parameters for ::def_single_delegator.
      Patch by Vladimir Andrijevik [Github Fixes #230]

  Modified files:
    trunk/ChangeLog
    trunk/lib/forwardable.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38688)
+++ ChangeLog	(revision 38689)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jan  4 11:51:00 2013  Zachary Scott  <zachary@z...>
+
+	* lib/forwardable.rb: Fix rdoc parameters for ::def_single_delegator.
+	  Patch by Vladimir Andrijevik [Github Fixes #230]
+
 Fri Jan  4 00:35:11 2013  Yuki Yugui Sonoda  <yugui@y...>
 
 	Fix failures on btest for NativeClient.
Index: lib/forwardable.rb
===================================================================
--- lib/forwardable.rb	(revision 38688)
+++ lib/forwardable.rb	(revision 38689)
@@ -250,11 +250,12 @@ module SingleForwardable https://github.com/ruby/ruby/blob/trunk/lib/forwardable.rb#L250
     end
   end
 
+  # :call-seq:
+  #   def_single_delegator(accessor, method, new_name=method)
   #
-  # Defines a method _method_ which delegates to _obj_ (i.e. it calls
-  # the method of the same name in _obj_).  If _new_name_ is
+  # Defines a method _method_ which delegates to _accessor_ (i.e. it calls
+  # the method of the same name in _accessor_).  If _new_name_ is
   # provided, it is used as the name for the delegate method.
-  #
   def def_single_delegator(accessor, method, ali = method)
     str = %{
       def #{ali}(*args, &block)

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

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