Created
January 23, 2018 13:21
-
-
Save pointcom/169291eabd78d7fb6e91b080235a62c5 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
module IntegerExtension | |
def to_s | |
"this is an integer: #{super}" | |
end | |
end | |
Integer.prepend(IntegerExtension) | |
puts 1.to_s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment