Project

General

Profile

Feature #6534 » 0001-Delegator-documentation-for-the-bang-operator.patch

zzak (zzak _), 06/03/2012 12:02 AM

View differences:

lib/delegate.rb
__getobj__ != obj
end
#
# Inverse the return of the object method calls are being delegated to.
#
def !
!__getobj__
end
......
end
end
# :stopdoc:
def Delegator.delegating_block(mid)
def Delegator.delegating_block(mid) # :nodoc:
lambda do |*args, &block|
target = self.__getobj__
begin
......
end
end
end
# :startdoc:
#
# The primary interface to this library. Use to setup delegation when defining
(1-1/2)