From: Paul Brannan Date: 2007-09-04T21:55:35+09:00 Subject: Re: Struct is cleverer than the documentation claims On Tue, Sep 04, 2007 at 07:01:15PM +0900, Paul Butcher wrote: > > Customer = Struct.new(:name, :address) do > > def to_s > > "Customer called '#{name}' living at '#{address}'" > > end > > end > > > class Customer < Struct.new(:name, :address) > > def to_s > > "Customer called '#{name}' living at '#{address}'" > > end > > end Why not reopen the class? Customer = Struct.new(:name, :address) class Customer def to_s "Customer called '#{name}' living at '#{address}'" end end Paul