From: ruby-core@... Date: 2015-12-15T20:50:14+00:00 Subject: [ruby-core:72162] [Ruby trunk - Feature #11824] [Feedback] Add Enumerator#to_ary for added implicit behavior Issue #11824 has been updated by Marc-Andre Lafortune. Status changed from Open to Feedback I'm pretty certain that it's still quite a bad idea. Can you provide any argument why anything would have changed? Otherwise we'll close this. ---------------------------------------- Feature #11824: Add Enumerator#to_ary for added implicit behavior https://bugs.ruby-lang.org/issues/11824#change-55573 * Author: Daniel P. Clark * Status: Feedback * Priority: Normal * Assignee: ---------------------------------------- Calling `Enumerator#to_a` many times can become a bit ugly in a code base. I propose these changes to Enumerator to allow implicit Array use of all Enumerators. ~~~ruby class Enumerator def to_ary to_a end def method_missing m, *a, &b return to_a.send(m, *a, &b) if Array.instance_methods.include? m super end end ~~~ -- https://bugs.ruby-lang.org/