Created
May 16, 2018 12:51
-
-
Save mleszcz/d3ad8cfe65335f7fa63e442aa8006bc5 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(WriteToSSD, ReadFromSSD) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment