Feature #6534 » 0001-Delegator-documentation-for-the-bang-operator.patch
lib/delegate.rb | ||
---|---|---|
__getobj__ != obj
|
||
end
|
||
#
|
||
# Delegates ! to the __getobj__
|
||
#
|
||
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
|
- « Previous
- 1
- 2
- Next »