Created
May 30, 2014 04:37
-
-
Save thomaslee/0194952d9215e0f575a9 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 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