test.rb
print 'hello (print)' # 改行なしで出力
puts 'hello(put)' # 改行ありで出力
p 'hello(p)' # デバッグ用出力(データ形式がわかる)
$ ruby test.rb
hello (print)hello(put)
"hello(p)"
Go to list of users who liked
More than 5 years have passed since last update.
print 'hello (print)' # 改行なしで出力
puts 'hello(put)' # 改行ありで出力
p 'hello(p)' # デバッグ用出力(データ形式がわかる)
$ ruby test.rb
hello (print)hello(put)
"hello(p)"
Register as a new user and use Qiita more conveniently
Go to list of users who liked