Browse files

README update

  • Loading branch information...
1 parent 0162212 commit ffbd85612224a03075bfb599a66f355ede803e90 @mbklein mbklein committed Nov 11, 2011
Showing with 12 additions and 3 deletions.
  1. +12 −3
@@ -30,22 +30,31 @@ The above can also be done in block form:
-There are many ways to configure the resulting `config` object...
+There are many ways to access and configure the resulting `config` object...
-The Struct-like way
+As a struct...
config.project = 'other-project'
config.github.url = ''
config.github.branch = 'pre-1.0'
-The block-oriented way
+As a block...
config.configure do
project 'other-project'
github.url ''
github.branch 'pre-1.0'
+As a hash...
+ config[:github][:url] = ''
+Or even as a crazy struct/hash hybrid...
+ config.github[:url] = ''
+ config[:github].branch = 'pre-1.0'
Each sub-hash/struct is a configuration object in its own right, and can be
treated as such. (Note the ability to leave the `configure` method
off the inner call.)

0 comments on commit ffbd856

Please sign in to comment.