0 replies on 1 page.
So, it sounds like the 1.9 series will remove Enumerable from String’s ancestry, in favor of String#lines. All string iteration casts to an Array. Maybe I’m getting my hopes up, but all these string changes seem like portents of Unicode Times.
Enumerable
String
String#lines
>> str = "pony\nwagon\nstungun\n" => "pony\nwagon\nstungun\n" >> str.max NoMethodError: undefined method `max' for "pony\nwagon\nstungun\n":String from (irb):2:in `Kernel#binding' >> str.lines.max => "wagon\n"
Makes sense. Anyone else mourning the impotent string splat?
>> utilities = *str => ["pony\nwagon\nstungun\n"]
Like a little rotary saw whose tooth got stuck. (from matz and patch.)
Read: (String