Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

README update

  • Loading branch information...
commit ffbd85612224a03075bfb599a66f355ede803e90 1 parent 0162212
Michael B. Klein mbklein authored

Showing 1 changed file with 12 additions and 3 deletions. Show diff stats Hide diff stats

  1. +12 3 README.md
15 README.md
Source Rendered
@@ -30,15 +30,15 @@ The above can also be done in block form:
30 30 end
31 31 end
32 32
33   -There are many ways to configure the resulting `config` object...
  33 +There are many ways to access and configure the resulting `config` object...
34 34
35   -The Struct-like way
  35 +As a struct...
36 36
37 37 config.project = 'other-project'
38 38 config.github.url = 'http://www.github.com/somefork/other-project'
39 39 config.github.branch = 'pre-1.0'
40 40
41   -The block-oriented way
  41 +As a block...
42 42
43 43 config.configure do
44 44 project 'other-project'
@@ -46,6 +46,15 @@ The block-oriented way
46 46 github.branch 'pre-1.0'
47 47 end
48 48
  49 +As a hash...
  50 +
  51 + config[:github][:url] = 'http://www.github.com/somefork/other-project'
  52 +
  53 +Or even as a crazy struct/hash hybrid...
  54 +
  55 + config.github[:url] = 'http://www.github.com/somefork/other-project'
  56 + config[:github].branch = 'pre-1.0'
  57 +
49 58 Each sub-hash/struct is a configuration object in its own right, and can be
50 59 treated as such. (Note the ability to leave the `configure` method
51 60 off the inner call.)

0 comments on commit ffbd856

Please sign in to comment.
Something went wrong with that request. Please try again.