Skip to content

Instantly share code, notes, and snippets.

@stravid stravid/web.rb
Created Jun 1, 2018

Embed
What would you like to do?
class Web < Roda
def initialize(database_url:)
@database_url = database_url
end
route do |r|
r.root do
"Configured database URL: #{@database_url}"
end
end
end
# This obviously doesn't work
run Web.new(database_url: "123")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.