Skip to content

Instantly share code, notes, and snippets.

@RX14
Created February 17, 2017 17:59
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 RX14/2aaceb7df340c5784c5eb335c4ada526 to your computer and use it in GitHub Desktop.
Save RX14/2aaceb7df340c5784c5eb335c4ada526 to your computer and use it in GitHub Desktop.
require "json"
class Config
getter database_url : String
getter listen_port = 8088
getter listen_address = "127.0.0.1"
getter(api_base_url : String) { "http://localhost:#{listen_port}" }
JSON.mapping
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment