require 'sinatra'

get '/hi' do
  "Hello World!"
end

Put this in
your pipe

$ gem install sinatra
$ ruby hi.rb
== Sinatra has taken the stage ...
>> Listening on 0.0.0.0:4567

and smoke it

Fork me on GitHub