Created
February 22, 2019 08:10
-
-
Save eprislac/8d7af338c631081ac78c658987e24720 to your computer and use it in GitHub Desktop.
An example of the wrong thing to do when reopening a Ruby class
This file contains hidden or 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
# Never do this for real. | |
class Array | |
def count | |
'fish' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment