From: "Iwan B." Date: 2012-08-08T19:32:25+09:00 Subject: Initializer with self I have tho classes A and B1, and b is defined as: a = A.new b = a.foo # b is an instance of class B1 I would like to define b directly: b = B2.new where the class B2 is defined: class B2 def initialize a = A.new self = a.foo # <<< error! end ... end But i cannot define self in the constructor... How can i solve this problem. Thanks on advance, iwan -- Posted via http://www.ruby-forum.com/.