Feature #6534 » 0001-Delegator-documentation-for-the-bang-operator.patch
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
|