Created
June 1, 2018 17:51
-
-
Save stravid/e79b2cc0a609325493eeb3aa85ca1ca1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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