From: Rimantas Liubertas Date: 2006-09-26T22:24:34+09:00 Subject: Re: constructor calls parent > I have a class witch inherit from another. I want that the child's > constructor call the upper constructor before start his (sorry for my > bad english). > > in C++ it would be : > MyClass::MyClass(options) : upperClass(options){ > > } > > I don't find how to write it in Ruby. class MySuperClass def initialize(args) ... end end class MyClass < MySuperClass def initialize(args) super # <- what you need end end Regards, Rimantas -- http://rimantas.com/