CGI Ruby

#!/ruby/bin/ruby
require 'cgi'
cgi=CGI.new("html3")
cgi.out{
     cgi.html{
            cgi.head{cgi.title{"My First Page"}}
            cgi.body{cgi.h1{"Hello, Welcome to the World of Ruby"}}
            }
     }