Class | Merb::Config |
In: |
lib/merb-core/config.rb
|
Parent: | Object |
Set configuration parameters from a code block, where each method evaluates to a config parameter.
&block: | Configuration parameter block. |
# Set environment and log level. Merb::Config.configure do environment "development" log_level "debug" end
Parses the command line arguments and stores them in the config.
argv<String>: | The command line arguments. Defaults to ARGV. |
Yields the configuration.
c<Hash>: | The configuration parameters. |
Merb::Config.use do |config| config[:exception_details] = false end