Created
January 12, 2015 20:04
-
-
Save ahirschberg/e0460af4e17592e6e14c to your computer and use it in GitHub Desktop.
Liskov Substitution Principal example 2
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
# 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