Skip to content

Instantly share code, notes, and snippets.

@daddz
Created October 22, 2009 11:51
Show Gist options
  • Save daddz/215903 to your computer and use it in GitHub Desktop.
Save daddz/215903 to your computer and use it in GitHub Desktop.
module Foo
get '/foo' do
"Hello from Foo"
end
end
class Bar < Sinatra::Base
include Foo
get '/' do
"Hello from Bar"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment