jvivenot [2006-08-21 01:35]:
Lets say I have two classes A and B, where A is B's superclass. B's
initialize method initialize her own variables, but how could I do in
order to run A.initialize before B.initialize when I write B.new ?
If I understood your problem correctly, you're after the "super" method.
Try the following code:
puts "initializing instance of A"
puts "initializing instance of B"
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
Q: What is the most annoying thing on usenet and in e-mail?