method_missing(m, *args, &block)
public
Handles the magic of delegation through __getobj__.
# File lib/delegate.rb, line 131
def method_missing(m, *args, &block)
begin
target = self.__getobj__
unless target.respond_to?(m)
super(m, *args, &block)
else
target.__send__(m, *args, &block)
end
rescue Exception
[email protected]_if{|s| %\A#{Regexp.quote(__FILE__)}:\d+:in `method_missing'\z" =~ s}
::Kernel::raise
end
end