paradigmatic/Configrity — pull request #19 by jvirtanen (2012-09-25 09:37:52+00:00)
Title: Add 'Configuration#detach'

For each unique prefix in the configuration, it produces a new configuration containing the values whose keys have the common prefix. It returns a set of (prefix, configuration) pairs.

This is useful in the following scenario:
```
accounts {
alice {
group: admins
name: Alice
}
bob {
group: users
name: Bob
}
}
```

Here the account identifiers, `alice` and `bob`, should obviously not be hard-coded into the application. `Configuration#detach` on the `accounts` sub-configuration provides a convenient discovery mechanism for configured accounts.