Class: Lumberg::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/lumberg/config.rb

Overview

Holds the configuration for Lumberg

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig



6
7
8
# File 'lib/lumberg/config.rb', line 6

def initialize
  @options = {}
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options



4
5
6
# File 'lib/lumberg/config.rb', line 4

def options
  @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