Skip to content

Commit

Permalink
Add reset! to README documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuck Durfee committed Nov 17, 2014
1 parent 94ef622 commit 0e77def
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ configatron.current.time = Configatron::Dynamic.new {Time.now}

Each time you call `configatron.current.time` it will return a new value to you. While this seems a bit useless, it is pretty useful if you have ever changing configurations.

### Reseting Configurations

In some testing scenarios, it can be helpful to restore Configatron to its default state. This can be done with:

```ruby
configatron.reset!
```

### Checking keys

Even if parameters haven't been set, you can still call them, but you'll get a `Configatron::Store` object back. You can use `.has_key?` to determine if a key already exists.
Expand Down

0 comments on commit 0e77def

Please sign in to comment.