Skip to content

Instantly share code, notes, and snippets.

# sample/sample_app.rb
require 'sinatra'
require 'pry'
# We us "classic" mode where you don't actually see the class
# inheriting from Sinatra::Base and you don't start the app with
# rackup. This makes the object structure less obvious but lets
# Sinatra do more of the behind-the-scenes
# sample/sample_app.rb
require 'sinatra'
require 'pry'
# We us "classic" mode where you don't actually see the class
# inheriting from Sinatra::Base and you don't start the app with
# rackup. This makes the object structure less obvious but lets
# Sinatra do more of the behind-the-scenes
# sample/sample_app.rb
require 'sinatra'
require 'pry'
# We us "classic" mode where you don't actually see the class
# inheriting from Sinatra::Base and you don't start the app with
# rackup. This makes the object structure less obvious but lets
# Sinatra do more of the behind-the-scenes