is there a way to use the spaceship method and the magic "method_missing" in one class? The below example gives me undefined method '<'
whenever I try foo1 < foo2
with a definiton like:
class Foo
def initialize(params)
@parent= params[:parent]
end
def <=>(o)
...
end
def method_missing(sym, *args, &block)
@parent.send sym, *args, &block
end
end
Any help appreciated :)