ruby-changes:23922
From: drbrain <ko1@a...>
Date: Sat, 9 Jun 2012 07:47:00 +0900 (JST)
Subject: [ruby-changes:23922] drbrain:r35973 (trunk): * lib/delegate.rb: Added documentation for Delegator#!. Patch by
drbrain 2012-06-09 07:46:49 +0900 (Sat, 09 Jun 2012) New Revision: 35973 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35973 Log: * lib/delegate.rb: Added documentation for Delegator#!. Patch by Zachary Scott. [ruby-trunk - Feature #6534] Modified files: trunk/ChangeLog trunk/lib/delegate.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 35972) +++ ChangeLog (revision 35973) @@ -1,3 +1,8 @@ +Sat Jun 9 07:46:26 2012 Eric Hodel <drbrain@s...> + + * lib/delegate.rb: Added documentation for Delegator#!. Patch by + Zachary Scott. [ruby-trunk - Feature #6534] + Sat Jun 9 07:39:50 2012 Eric Hodel <drbrain@s...> * lib/net/http/responses.rb: Add RFC 6585 response codes. Patch by Index: lib/delegate.rb =================================================================== --- lib/delegate.rb (revision 35972) +++ lib/delegate.rb (revision 35973) @@ -130,6 +130,9 @@ __getobj__ != obj end + # + # Delegates ! to the \_\_getobj\_\_ + # def ! !__getobj__ end @@ -285,8 +288,7 @@ end end -# :stopdoc: -def Delegator.delegating_block(mid) +def Delegator.delegating_block(mid) # :nodoc: lambda do |*args, &block| target = self.__getobj__ begin @@ -296,7 +298,6 @@ end end end -# :startdoc: # # The primary interface to this library. Use to setup delegation when defining -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/