Created
October 13, 2012 14:32
-
-
Save FerPerales/3884835 to your computer and use it in GitHub Desktop.
Special concat
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
#s = "Hello " + 64 #Error: can't convert Fixnum into String | |
s = "Hello " << 64 | |
puts s # Hello @ | |
s = "Hello " << 64.to_s | |
puts s # Hello 64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment