Andrea Dallera wrote:
> this should print out "from parent"

Maybe I can't follow you, but that's exactly what's super for:
-------------------------------------------
irb(main):001:0> class Parent
irb(main):002:1> attr_reader :test_value
irb(main):003:1> def initialize
irb(main):004:2> @test_value = "from parent"
irb(main):005:2> end
irb(main):006:1> end
=> nil
irb(main):007:0> class Child < Parent
irb(main):008:1> def initialize
irb(main):009:2> super
irb(main):010:2> p @test_value
irb(main):011:2> end
irb(main):012:1> end
=> nil
irb(main):013:0> child = Child.new
"from parent"
=> #<Child:0x0000000183c140 @test_value="from parent">
irb(main):014:0>
-------------------------------------------
Why don't you want it?

Marvin
-- 
Posted via http://www.ruby-forum.com/.