Class: Lumberg::Config
- Inherits:
-
Object
- Object
- Lumberg::Config
- Defined in:
- lib/lumberg/config.rb
Overview
Holds the configuration for Lumberg
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #[](v) ⇒ Object
-
#debug(output) ⇒ Object
Debug output.
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 |
# File 'lib/lumberg/config.rb', line 6 def initialize @options = {} end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/lumberg/config.rb', line 4 def @options end |
Instance Method Details
#[](v) ⇒ Object
10 11 12 |
# File 'lib/lumberg/config.rb', line 10 def [](v) @options[v] end |
#debug(output) ⇒ Object
Debug output. value can be either true to output to $stderr or a path to a file
15 16 17 |
# File 'lib/lumberg/config.rb', line 15 def debug(output) @options[:debug] = output end |