Skip to content

Instantly share code, notes, and snippets.

@stravid
Created June 1, 2018 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stravid/e79b2cc0a609325493eeb3aa85ca1ca1 to your computer and use it in GitHub Desktop.
Save stravid/e79b2cc0a609325493eeb3aa85ca1ca1 to your computer and use it in GitHub Desktop.
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