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

ruby-changes:38797

From: eregon <ko1@a...>
Date: Sun, 14 Jun 2015 04:17:41 +0900 (JST)
Subject: [ruby-changes:38797] eregon:r50878 (trunk): * lib/delegate.rb: [DOC] Update SimpleDelegator example. [ci skip]

eregon	2015-06-14 04:17:19 +0900 (Sun, 14 Jun 2015)

  New Revision: 50878

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

  Log:
    * lib/delegate.rb: [DOC] Update SimpleDelegator example. [ci skip]

  Modified files:
    trunk/ChangeLog
    trunk/lib/delegate.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50877)
+++ ChangeLog	(revision 50878)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Jun 14 04:15:40 2015  Benoit Daloze  <eregontp@g...>
+
+	* lib/delegate.rb: [DOC] Update SimpleDelegator example. [ci skip]
+
 Sat Jun 13 20:28:14 2015  NARUSE, Yui  <naruse@r...>
 
 	* file.c (rb_stat_ino): get inode from the interval of struct st.
Index: lib/delegate.rb
===================================================================
--- lib/delegate.rb	(revision 50877)
+++ lib/delegate.rb	(revision 50878)
@@ -21,11 +21,6 @@ https://github.com/ruby/ruby/blob/trunk/lib/delegate.rb#L21
 # Delegator:
 #
 #   class SimpleDelegator < Delegator
-#     def initialize(obj)
-#       super                  # pass obj to Delegator constructor, required
-#       @delegate_sd_obj = obj # store obj for future use
-#     end
-#
 #     def __getobj__
 #       @delegate_sd_obj # return object we are delegating to, required
 #     end

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

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