Skip to content

Instantly share code, notes, and snippets.

@ahirschberg
Created January 12, 2015 20:04
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 ahirschberg/e0460af4e17592e6e14c to your computer and use it in GitHub Desktop.
Save ahirschberg/e0460af4e17592e6e14c to your computer and use it in GitHub Desktop.
Liskov Substitution Principal example 2
# Implementation 2
class Base
## gets the number of files in the current directory, otherwise raises DiskError
def get_number
5
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment