End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Delegator#method_missing
method_missing(m, *args, &block)
lib/delegate.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/delegate.rb, line 82
def method_missing(m, *args, &block)
r = true
target = self.__getobj__ {r = false}
if r && target_respond_to?(target, m, false)
target.__send__(m, *args, &block)
elsif ::Kernel.method_defined?(m) || ::Kernel.private_method_defined?(m)
::Kernel.instance_method(m).bind_call(self, *args, &block)
else
super(m, *args, &block)
end
end
No documentation available
See also
#marshal_load
#methods
#marshal_dump
#protected_methods
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0