= private = protected
method_missing(m, *args, &block)
Handles the magic of delegation through __getobj__.
# File lib/delegate.rb, line 78 def method_missing(m, *args, &block) r = true target = self.__getobj__ {r = false} if r && target.respond_to?(m) target.__send__(m, *args, &block) elsif ::Kernel.respond_to?(m, true) ::Kernel.instance_method(m).bind(self).(*args, &block) else super(m, *args, &block) end end