Created
January 31, 2018 00:23
-
-
Save Adzz/6b04e0bec16b7d091dc2d4f4ae7cf820 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
defimpl Shape, for: Square do | |
def area(shape) do | |
shape.side * shape.side | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment