====== 基本動作確認(HELLO) ====== ===== puts表示・ループ確認 ===== s = "*** mruby test start ***\n" print s -times do |i| puts "#{i} Hello, world!" end p s 実行結果 *** mruby test start *** 0 Hello, world! 1 Hello, world! 2 Hello, world! 3 Hello, world! 4 Hello, world! "*** mruby test start ***\n"