Wait... Ruby Enumerators can receive values too?
Enumerator#feed allows an Enumerator to pause, accept input from the caller, and resume execution. One of those Ruby features that makes you say: “I never knew that existed.”
Ruby #RubyOnRails #Programming
Post a comment