[SVN] Re: io.rb: Changes for Ruby 1.9

Charles Turner vze26m98 at optonline.net
Thu Aug 28 20:29:10 UTC 2008

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) }


More information about the textmate-dev mailing list