Skip to content

Commit

Permalink
Add better explanation of #push! and #pop! to README
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein committed Nov 11, 2011
1 parent d297a1a commit 4d63f58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -118,7 +118,9 @@ act like `lambda`, making the following two assignments equivalent to the above:
client deferred! { |c| RestClient::Resource.new(c.url) }
end

`push!` and `pop!` methods allow you to temporarily override some or all of your configuration values
`push!` and `pop!` methods allow you to temporarily override some or all of your configuration values. This can be
useful in spec tests where you need to change values but don't want to worry about messing up tests that depend
on the same global configuration object.

config.github.url
=> "http://www.github.com/mbklein/confstruct"
Expand Down

0 comments on commit 4d63f58

Please sign in to comment.