Created
September 26, 2018 07:56
-
-
Save tbuehlmann/d648decd7590c786e0cd47e53ac037bc 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
'foo' + 42 # => TypeError: no implicit conversion of Integer into String | |
class Integer | |
def to_str | |
to_s | |
end | |
end | |
'foo' + 42 # => 'foo42' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment