Permalink
Browse files

Add usage example in the README (#31)

  • Loading branch information...
edwardloveall authored and paulcsmith committed Aug 28, 2018
1 parent bc3c71e commit b671affb4493be49b3031c217c8f35f49abb2a8a
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.md
View
@@ -40,6 +40,13 @@ end
Habitat.raise_if_missing_settings!
```
Settings can also be accessed from outside the class:
```crystal
port = MyServer.settings.port
puts "The server is starting on port #{port}"
```
## Contributing
1. Fork it ( https://github.com/luckyframework/habitat/fork )

0 comments on commit b671aff

Please sign in to comment.