method

delegating_block

v2_1_10 - Show latest stable - Class: Delegator
delegating_block(mid)
public

No documentation available.

# File lib/delegate.rb, line 339
def Delegator.delegating_block(mid) # :nodoc:
  lambda do |*args, &block|
    target = self.__getobj__
    begin
      target.__send__(mid, *args, &block)
    ensure
      [email protected]_if {|t| /\A#{Regexp.quote(__FILE__)}:#{__LINE__-2}:/ =~ t} if $@
    end
  end
end