Flowdock
method

delegating_block

Importance_0
v2_2_9 - Show latest stable - 0 notes - Class: Delegator
delegating_block(mid) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/delegate.rb, line 345
def Delegator.delegating_block(mid) # :nodoc:
  lambda do |*args, &block|
    target = self.__getobj__
    begin
      target.__send__(mid, *args, &block)
    ensure
      $@.delete_if {|t| /\A#{Regexp.quote(__FILE__)}:#{__LINE__-2}:/ =~ t} if $@
    end
  end
end
Register or log in to add new notes.