Project

General

Profile

« Previous | Next » 

Revision dc6d7cc5

Added by nobu (Nobuyoshi Nakada) about 8 years ago

object.c: use a sized enumerator with #yield_self

  • object.c (rb_obj_size): The #yield_self Enumerator instance
    always has a #count of 1. This provides a lazy #size of 1
    to match the count instead of nil. [Fix GH-1615]

Author: Shannon Skipper

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e