diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-11 09:49:14 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-11 09:49:14 +0000 |
commit | c2d3b8dfb43e6dbc0b9af3c0f880636ffcc06ca9 () | |
tree | 3ddc67451c963d775f07eb9f1092fed7974a58bb /lib/fileutils.rb | |
parent | 7d9664953ba574b04f6558e80e95a71289275d64 (diff) |
Implement Enumerator::Yielder#to_proc
A Yielder object can now be directly passed to another method as a block argument. ```ruby enum = Enumerator.new { |y| Dir.glob("*.rb") { |file| File.open(file) { |f| f.each_line(&y) } } } ``` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
0 files changed, 0 insertions, 0 deletions