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

Charles Turner vze26m98 at optonline.net
Thu Aug 28 21:32:04 UTC 2008

On Thu, 28 Aug 2008 16:14:58 -0500, James Gray wrote:
> I know it doesn't by default.  Is that true after a require  
> "enumerator" though?  I haven't checked.

Well, the original linked_ri.rb code has "require 'enumerator'", but 
1.9 has no such library, so I guess the require is failing gracefully. 
Enumerators are internal in 1.9, right?

So the original code proves the solution:

`': undefined method `enum_with_index' for ["String"]:Array 

In 1.9, with a non-existant enumerator "required", the method is 
undefined. So a test for the presence of enum_with_index seems 

Best, Charles

More information about the textmate-dev mailing list