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/.