Created
May 16, 2018 12:45
-
-
Save mleszcz/c9a9f55fbc18f61fd3098ebb4c2174d0 to your computer and use it in GitHub Desktop.
This file contains 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
# higher level | |
class Copy | |
def self.call(reader, writer) | |
writer.call(reader.call) | |
end | |
end | |
# lower level | |
Copy.call(WriteToHDD, ReadFromHDD) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment