Last active
October 4, 2020 04:01
-
-
Save jacknoble/021c8118abeb8a740451247db110c31d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IOSource | |
include Enumerable | |
def each | |
loop do | |
yield gets.chomp | |
end | |
end | |
end | |
IOSource.new.lazy. | |
map(&:upcase). | |
map { |e| puts e }. | |
force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment