object.c: use a sized enumerator with #yield_self
1
nil
Author: Shannon Skipper [email protected]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
object.c: use a sized enumerator with #yield_self
always has a #count of
1
. This provides a lazy #size of1
to match the count instead of
nil
. [Fix GH-1615]Author: Shannon Skipper [email protected]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e