4 ms·
Responding to #each is neither a necessary or sufficient property of Ruby IO objects. You are mistaken and confused. Don't believe me? Let's undefine #each on
by bascule 14y ago
Responding to #each is neither a necessary or sufficient property of Ruby IO objects. You are mistaken and confused.
Don't believe me? Let's undefine #each on the metaclass of an IO object and see what happens. Guess what: it still works!
https://gist.github.com/3218710 https://gist.github.com/3218710