On Thu, 28 Aug 2008 16:00:37 -0500, James Gray wrote: >> >> As per your earlier email on the users list, wouldn't something like >> this work? >> >> linked = constants.send(str.respond_to?(:each_with_index) ? >> :each_with_index : :enum_with_index) do |const, i| > > Unfortunately no. 1.8 supports each_with_index() just not the way you > are calling it.
Then wouldn't the reverse work, as 1.9 doesn't look like has an enum_with_index? Best, Charles _______________________________________________ textmate-dev mailing list [email protected] http://lists.macromates.com/listinfo/textmate-dev
