Skip to content

Instantly share code, notes, and snippets.

@2get
Created October 3, 2012 04:17
Show Gist options
  • Save 2get/3824968 to your computer and use it in GitHub Desktop.
Save 2get/3824968 to your computer and use it in GitHub Desktop.
Hello World. Using Rack
require 'rubygems'
require 'rack'
class App
def call(env)
[ 200, { 'Content-Type' => 'text/plain' }, ['Hello World.'] ]
end
end
run App.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment