WEBrick 的基本例子 2015/04/09 14529 require 'webrick' server = WEBrick::GenericServer.new(:Port => 1234) trap("INT"){ server.shutdown } server.start do |socket| socket.puts Time.now end