Skip to content

Instantly share code, notes, and snippets.

@Adzz
Created January 31, 2018 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Adzz/6b04e0bec16b7d091dc2d4f4ae7cf820 to your computer and use it in GitHub Desktop.
Save Adzz/6b04e0bec16b7d091dc2d4f4ae7cf820 to your computer and use it in GitHub Desktop.
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