I'd like to call a particular inherited method rather than the one in
my immediate ancestor. For instance
class Parent
def to_s
super.to_s + " Parent-specific stuff here."
end
end
class Child < Parent
def to_s
# I want to call Object.to_s here ...
end
end
I can't figure out the right syntax. Any hints? For what it's worth
I'm using Ruby 1.8.1.
Normally I wouldn't want to skip an ancestor method for fear of
violating the Liskov Substitution Principle. For to_s, though, it
seems reasonable enough to me.
--
Adam Wildavsky Extreme Programmer Tameware, LLC
adam / tameware.com http://www.tameware.com