You do realize, of course, that you can do it in one line right?
require 'sinatra'
Just put everything else in the public subfolder of the script, and run it.If you want the public folder to be the root, you can make it in two lines:
require 'sinatra'
set :public_folder, '.'