Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* lib/delegate.rb: Added documentation for Delegator#!. Patch by

  Zachary Scott.  [ruby-trunk - Feature #6534]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit 1d7798dc75218d3a3bffe7018afc341e04560187 1 parent 1102fd2
@drbrain drbrain authored
Showing with 9 additions and 3 deletions.
  1. +5 −0 ChangeLog
  2. +4 −3 lib/delegate.rb
View
5 ChangeLog
@@ -1,3 +1,8 @@
+Sat Jun 9 07:46:26 2012 Eric Hodel <drbrain@segment7.net>
+
+ * 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@segment7.net>
* lib/net/http/responses.rb: Add RFC 6585 response codes. Patch by
View
7 lib/delegate.rb
@@ -130,6 +130,9 @@ def !=(obj)
__getobj__ != obj
end
+ #
+ # Delegates ! to the \_\_getobj\_\_
+ #
def !
!__getobj__
end
@@ -285,8 +288,7 @@ def __setobj__(obj)
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 @@ def Delegator.delegating_block(mid)
end
end
end
-# :startdoc:
#
# The primary interface to this library. Use to setup delegation when defining
Please sign in to comment.
Something went wrong with that request. Please try again.