I really don't know what you are trying to do here - all the code you posted works with instance variables. Instance variables for each object, not for each class, so I don’t know what you mean when you say "I need a value from the parent class."
, :
- .
B A#initialize , . B#initialize , A#initialize. . . , .B.new('myname'), @name , A#initialize . super(:name => name) ( initialize), @name B#initialize@name . , /.
, , , , , . , . , Ruby mixin, "" , , .