「Ruby入門」printメソッドのサンプル
使用例
print("study ruby in arkgame111\n") print(5678) print("\nstudy ruby in arkgame222\n") cftArr = [123, 456, 789, 666] print(cftArr) cft = {"name"=>"user007", "age"=>30} print(cft)
実行結果
>ruby test1234.rb
study ruby in arkgame111
5678
study ruby in arkgame222
[123, 456, 789, 666]{“name"=>"user007", “age"=>30}