Skip to content

Instantly share code, notes, and snippets.

@thomaslee
Created May 30, 2014 04:37
Show Gist options
  • Save thomaslee/0194952d9215e0f575a9 to your computer and use it in GitHub Desktop.
Save thomaslee/0194952d9215e0f575a9 to your computer and use it in GitHub Desktop.
class Config(properties: Properties) {
val properties = properties
val redis = object {
val hostAndPort: HostAndPort
get() = HostAndPort.fromString(properties.getProperty("redis") ?: "127.0.0.1:4001")!!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment