From: Yukihiro Matsumoto Date: 2007-06-30T22:16:26+09:00 Subject: Re: is it bug? for Hi, In message "Re: is it bug? for" on Sat, 30 Jun 2007 21:57:03 +0900, Chung Chung writes: |[root@home1 ~]# ruby -v |ruby 1.9.0 (2007-06-30 patchlevel 0) [i686-linux] |[root@home1 ~]# irb |irb(main):001:0> "hello".to_a |NoMethodError: undefined method `to_a' for "hello":String | from (irb):1:in `method_missing' | from (irb):1 | from |/root/Desktop/ruby-trunk/trunk/build/lib/ruby/1.9/irb.rb:150:in `bl No, it's not a bug. In 1.9, Strings are no longer Enumerable based on lines. Instead, use "lines" explicitly. matz.