On Aug 28, 2008, at 3:53 PM, Charles Turner wrote: > On Thu, 28 Aug 2008 15:13:21 -0500, James Gray wrote: >> On Aug 28, 2008, at 1:35 PM, Charles Turner wrote: >> >>> This diff file shows the patches I made to get the Ruby bundle >>> support >>> file linked_ri.rb to work with ruby 1.9.0 (2007-12-25 revision >>> 14709) >>> [i686-darwin9.4.0] >> >> You can't call each_with_index() without a block on Ruby 1.8. > > 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. James Edward Gray II _______________________________________________ textmate-dev mailing list [email protected] http://lists.macromates.com/listinfo/textmate-dev
