Hi everybody! I've got a problem with ingeritance. If there is a
notation like 'class Square', we can write class Rectangle like 'class
Rectangle<Square'. But how it will be here?

Square = Struct.new(:x,:y,:a) do
   include Domieszka
   def pole
   p = a**2
   end
   def obwod
   o = 4*a
   end
   def pole=(a)
   self.a = a
   end
   def obwod=(a)
   self.a = a
   end
end


Rectangle<Square = Struct.new(:x,:y,:b) do
   include Domieszka
   def pole
   p = a*b
   end
end

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