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: /Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Support/bin/linked_ri.rb:109:in `': undefined method `enum_with_index' for ["String"]:Array (NoMethodError) In 1.9, with a non-existant enumerator "required", the method is undefined. So a test for the presence of enum_with_index seems sufficient. Best, Charles _______________________________________________ textmate-dev mailing list [email protected] http://lists.macromates.com/listinfo/textmate-dev
