From: Christian Kerth Date: 2008-11-27T15:57:06+09:00 Subject: Re: Exclude members from YAML conversion? Joel VanderWerf wrote: > require 'yaml' > class C > attr_reader :x, :y, :z > > def initialize x, y, z > @x, @y, @z = x, y, z > end > def to_yaml_properties > super - ["@x"] > end > end > c = C.new 1, 2, 3 > p c.to_yaml_properties > puts c.to_yaml Thx! -- Posted via http://www.ruby-forum.com/.