Skip to content

Instantly share code, notes, and snippets.

@mleszcz
Created May 16, 2018 11:42
Show Gist options
  • Select an option

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

Select an option

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

Revisions

  1. mleszcz created this gist May 16, 2018.
    2 changes: 2 additions & 0 deletions solid-3-lsp-fail-use-case.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    shapes = [ Rectangle.new, Square.new ]
    shapes.each { |shape| shape.set_width(100) }