From: luk malcik Date: 2012-02-06T10:21:12+09:00 Subject: Re: inheritance one more time That's full of code. I think there is no problem with Domieszka. module Domieszka attr_accessor :x, :y def moveto(x,y) @x = x @y = y end end Circle = Struct.new(:x,:y,:r) do include Domieszka def field p = Math::PI * r**2 end def field=(r) self.r = r end def obwod o = 2*Math::PI*r end def obwod=(r) self.r = r end end Square = Struct.new(:x,:y,:a) do include Domieszka def field p = a**2 end def obwod o = 4*a end def field=(a) self.a = a end def obwod=(a) self.a = a end end class Rectangle