On 4/24/07, Stephen Smith <4fires / gmail.com> wrote:
> Hey all,
>
> So I'm trying to freeze a class variable, and I discover that Object#freeze
> breaks down every time on my machine. Even with simple strings.
>
>
> fiery
>

Try altering it instead of reassigning it.
I think this is a little more like what you expected.
Not exactly, but you can see freezing.


test = "good"
p test
test.freeze
p test
p test.frozen?

test << "bad"
p test
p test.frozen?

Harry

-- 
http://www.kakueki.com/ruby/list.html
A Look into Japanese Ruby List in English