1#!/usr/bin/env ruby
2require "webrick/cgi"
3
4class HelloCGI < WEBrick::CGI
5  def do_GET(req, res)
6    res["content-type"] = "text/plain"
7    res.body = "Hello, world.\n"
8  end
9end
10
11HelloCGI.new.start
12