Skip to content

Instantly share code, notes, and snippets.

@mleszcz
Created May 16, 2018 12:51
Show Gist options
  • Save mleszcz/d3ad8cfe65335f7fa63e442aa8006bc5 to your computer and use it in GitHub Desktop.
Save mleszcz/d3ad8cfe65335f7fa63e442aa8006bc5 to your computer and use it in GitHub Desktop.
# 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