From: Robert Klemme Date: 2009-05-26T04:50:05+09:00 Subject: Re: hash assignment [:x] vs ['x'] On 25.05.2009 20:13, Rick DeNatale wrote: > Strings are mutable, ... Well, most of the time - but sometimes they aren't: irb(main):001:0> "I am not".freeze.upcase! RuntimeError: can't modify frozen string from (irb):2:in `upcase!' from (irb):2 from /usr/local/bin/irb19:12:in `
' irb(main):002:0> ;-) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/