for the first q

class foo
 attr_accessor_with_history :bar
end

I need when I compile it its gives me

f=Foo.new    #=> #<Foo:0x127e678>
f.bar =3     #=> 3
f.bar = :wowzo    #=> :wowzo
f.bar = 'boo!'    #=> 'boo!'
f.history(:bar)   #=> [3, :wowzo, 'boo!']

-- 
Posted via http://www.ruby-forum.com/.