Class | Loquacious::Configuration |
In: |
lib/loquacious/configuration.rb
lib/loquacious/configuration/help.rb lib/loquacious/configuration/iterator.rb |
Parent: | Object |
help_for | -> | help |
__desc | [R] | Accessor for the description hash. |
Returns the configuration associated with the given name. If a block is given, then it will be used to create the configuration.
The same name can be used multiple times with different configuration blocks. Each different block will be used to add to the configuration; i.e. the configurations are additive.
Provides hash accessor notation for configuration values.
config = Configuration.for('app') { port 1234 } config[:port] #=> 1234 config.port #=> 1234
Provides hash accessor notation for configuration values.
config = Configuration.for('app') config[:port] = 8808 config.port #=> 8808
Merge the contents of the other configuration into this one. Values from the other configuratin will overwite values in this configuration.
This function is recursive. Nested configurations will be merged with their counterparts in the other configuration.