README.md in yaml_properties-0.0.1 vs README.md in yaml_properties-0.0.2
- old
+ new
@@ -1,11 +1,11 @@
# YamlProperties
If you find yourself often setting app config in yaml files for different
environments etc. Then this can be quite useful to simply access those variables.
-
+## Examples
```ruby
YamlProperties.redis_port
```
Will by default read a value from a YAML file in `config/properties.yml`
@@ -21,19 +21,22 @@
extend YamlProperties
end
```
-#Override filename like this
+##Override filename like this
```ruby
module Shutl
extend YamlProperties
def self.yaml_file
ENV['SINATRA_ENV'] == 'development' ? 'config/properties.yml' : 'config/properties_production.yml'
end
end
```
#Yadayada
+
+```ruby
gem 'yaml_config'
+```
Usual gem/bundler usage/contribution guidelines