Skip to content

Instantly share code, notes, and snippets.

@mleszcz
Last active May 16, 2018 12:50
Show Gist options
  • Select an option

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

Select an option

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

Revisions

  1. mleszcz revised this gist May 16, 2018. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions solid-5-dip-2.rb
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,7 @@
    # higher level
    class Copy
    def self.call
    processed_read = parse_read(ReadFromHDD.call)
    WriteToSSD.call(processed_read)
    WriteToSSD.call(ReadFromSSD.call)
    end
    end

  2. mleszcz revised this gist May 16, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion solid-5-dip-2.rb
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    class Copy
    def self.call
    processed_read = parse_read(ReadFromHDD.call)
    WriteToHDD.call(processed_read)
    WriteToSSD.call(processed_read)
    end
    end

  3. mleszcz revised this gist May 16, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion solid-5-dip-2.rb
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # high level
    # higher level
    class Copy
    def self.call
    processed_read = parse_read(ReadFromHDD.call)
  4. mleszcz created this gist May 16, 2018.
    10 changes: 10 additions & 0 deletions solid-5-dip-2.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # high level
    class Copy
    def self.call
    processed_read = parse_read(ReadFromHDD.call)
    WriteToHDD.call(processed_read)
    end
    end

    # lower level
    Copy.call