Skip to content

Instantly share code, notes, and snippets.

@mleszcz
Created May 16, 2018 12:51
Show Gist options
  • Select an option

  • Save mleszcz/d3ad8cfe65335f7fa63e442aa8006bc5 to your computer and use it in GitHub Desktop.

Select an option

Save mleszcz/d3ad8cfe65335f7fa63e442aa8006bc5 to your computer and use it in GitHub Desktop.

Revisions

  1. mleszcz created this gist May 16, 2018.
    9 changes: 9 additions & 0 deletions solid-5-dip-correct-2.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # higher level
    class Copy
    def self.call(reader, writer)
    writer.call(reader.call)
    end
    end

    # lower level
    Copy.call(WriteToSSD, ReadFromSSD)