require "http/server" server = HTTP::Server.new(8080) do |request| HTTP::Response.ok "text/plain", "Hello world!" end puts "Listening on http://0.0.0.0:8080" server.listen
10 p [1, 2, 3] p ({a: 1, b: 2}) puts "hoge %s, %d, %.2f" % ["hogehoge", 1 , 1.12] [1, 2, 3, 4].each do |i| puts i end ([1,2,3] of Int32).each do |i| puts i end (1..10).each do |i| puts i end # ҎԼུ