Skip to content

Instantly share code, notes, and snippets.

View karouf's full-sized avatar

Renaud Martinet karouf

View GitHub Profile
@gary-rafferty
gary-rafferty / Rakefile.rb
Created January 9, 2012 19:56
Rake task to show my Sinatra routes (probably not reusable)
require './application'
namespace :routes do
task :show do
endpoints = {}
if Sinatra::Application.descendants.any?
#Classic application structure
applications = Sinatra::Application.descendants
applications.each do |app|