From: luk malcik Date: 2012-02-03T11:55:13+09:00 Subject: problem with method Why method pole= doesn't work?? Kolo = Struct.new (:x,:y,:r) Kwadrat = Struct.new (:x,:y,:a) Prostokat = Struct.new (:x,:y,:a,:b) module Domieszka attr_accessor :x, :y def moveto(x,y) @x = x @y = y end end class Kolo include Domieszka def pole= @r = r pole = r * Math.PI return pole end end -- Posted via http://www.ruby-forum.com/.