On Aug 28, 2008, at 3:29 PM, Charles Turner wrote:
> On Thu, 28 Aug 2008 14:50:26 -0500, James Gray wrote:
>> Can you explain how this fixes 1.9? Strings are not Enumerable in
>> 1.9
>> so I don't get what switching from each_line() to each did for us.
>
> Sorry! You're a victim of my diff villany. It's actually the other way
> around: I had to switch to each_line to get io.rb to work with 1.9:
>
> case block.arity
> when 1 then lines.each_line { |line| block.call(line) }
> when 2 then lines.each_line { |line| block.call(line, name) }
> end
I've changed these to the lines you showed here. I also changed some
other when … : … lines in that file to when … then ….
James Edward Gray II
_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/listinfo/textmate-dev