Subject: Latest CVS: each_line broken for frozen strings
From: Matt Armstrong <matt lickey.com>
Date: Tue, 16 Nov 2004 06:53:23 +0900
References: 37343735
In-reply-to: 3735
This just showed up in 1.9 CVS.
Seems like you should be able to call #each_line on frozen strings:
ruby-cvs -e '"a\nb".freeze.each_line {|l| p l}'
"a\n"
-e:1:in `each_line': string modified (RuntimeError)
from -e:1
--
matt