Created
January 29, 2010 06:45
-
-
Save EragonJ/289506 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
test = 1 | |
puts test.to_s | |
puts test.class | |
test = "xx" | |
puts test.to_s | |
puts test.class | |
#結果如下 | |
#ruby test.rb | |
#1 | |
#Fixnum | |
#xx | |
#String |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment