Hi-
This may be a pretty easy question but I'm new to ruby
Say I have a class like this
class MyClass
def myCallingMethod
myMethodToOverrider("hello")
end
def myMethodToOverride(string)
end
end
and I want to create a chile method like so
class ChildClass < MyClass
def myMethodToOverride(string)
puts string
end
end
Then I create an instance of my child class
child = ChildClass.new()
then I call myCallingMethod
child.myCallingMethod()
is there anyway to have the method in the parent object call the overriden
method in the child?
Thanks in advance.