J
Joerg Diekmann
Hi - not sure if this is possible - but it feels like it could be with
some serious ruby-fu.
I have the following:
class A
def method1
method2
end
def method2
return 100
end
end
class B < A
def method1
super
end
def method2
return 200
end
end
This is what happens:
b.method1 # 200
But, what I want is:
b.method1 # 100
Is this possible at all?
Thanks
Joerg
some serious ruby-fu.
I have the following:
class A
def method1
method2
end
def method2
return 100
end
end
class B < A
def method1
super
end
def method2
return 200
end
end
This is what happens:
b.method1 # 200
But, what I want is:
b.method1 # 100
Is this possible at all?
Thanks
Joerg