How in the world does SimpleDelegator#method
work?
SimpleDelegator
subclassesBasicObject
, which does not provide amethod
method.- Looking over the
source,
you can see that it doesn't define a
method
method anywhere. - It does define
method_missing
and proxy undefined methods to the delegated object...but I don't think that can be how it works, because both of these examples work: