Skip to content
  • Akinori MUSHA's avatar
    fd8c8d09
    * enumerator.c, inits.c (rb_call_inits), ruby.h, intern.h, · fd8c8d09
    Akinori MUSHA authored
      ext/enumerator, common.mk (OBJS, enumerator.$(OBJEXT)): Make the
      enumerator module built-in,
    
    * enumerator.c: New method: Enumerable::Enumerator#with_index.
    
    * enum.c (enum_each_with_index): Enumerable#each_with_index now
      returns an enumerator instead of raising an exception if no
      block is given.  Enumerable#enum_with_index, formerly defined in
      the enumerator module, is kept as an alias to each_with_index
      for backward compatibility.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    fd8c8d09
    * enumerator.c, inits.c (rb_call_inits), ruby.h, intern.h,
    Akinori MUSHA authored
      ext/enumerator, common.mk (OBJS, enumerator.$(OBJEXT)): Make the
      enumerator module built-in,
    
    * enumerator.c: New method: Enumerable::Enumerator#with_index.
    
    * enum.c (enum_each_with_index): Enumerable#each_with_index now
      returns an enumerator instead of raising an exception if no
      block is given.  Enumerable#enum_with_index, formerly defined in
      the enumerator module, is kept as an alias to each_with_index
      for backward compatibility.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Loading