From: Eric Christopherson Date: 2012-02-06T16:01:15+09:00 Subject: Re: inheritance one more time On Sun, Feb 5, 2012 at 7:21 PM, luk malcik wrote: > Square = Struct.new(:x,:y,:a) do Oh, right -- I forgot Square is a struct with a and a= defined on it. Since you have self.b = b you need to define b=, e.g. by defining an accessor: attr_accessor :b