From: Michael Libby Date: 2009-01-02T23:06:55+09:00 Subject: Re: Function to flush the variable >> Andrew Timberlake wrote: > A 'variable' with an uppercase first letter is actually a constant in ruby > and you can only assign to it once. > Change 'Status' to 'status' and you should see it work In Ruby you can assign to a constant as many times as you like. You will be scolded for it, but it's allowed. irb(main):001:0> IMA_CONST = "foo" => "foo" irb(main):002:0> IMA_CONST = "bar" (irb):2: warning: already initialized constant IMA_CONST => "bar" irb(main):003:0> IMA_CONST = "baz" (irb):3: warning: already initialized constant IMA_CONST => "baz" irb(main):004:0> IMA_CONST => "baz" -Michael -- Michael C. Libby www.mikelibby.com