I think this problem will be best explained by simply showing you the
puts ‘initializing ConfigSettings’
puts ‘initiliazing Dog’
dog = Dog.new
settings = ConfigSettings.new[/code]
I would, of course, expect this to result in two prints to stdout:
“initializing Dog” and “initializing ConfigSettings”. However, when I
run this program, “initializing ConfigSettings” is never output.
What in the world is going on?