Can’t do a super.foo. An ugly unreliable hack might be:
class A
def foo
puts “A::foo”
end
end
class B < A
alias_method :bar, :foo
def foo
puts “B::Foo”
end
end
b = B.new
b.foo
b.bar
David
http://homepages.ihug.com.au/~naseby/
···
-----Original Message-----
From: Charles Comstock [mailto:cc1@cec.wustl.edu]
If I have code like:class A
def foo
puts “A::foo”
end
endclass B < A
def foo
puts “B::foo”
end
def bar
# call A::foo
end
endIs there a legal way to call A::foo from B::bar?