Class: Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



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

def initialize
    @skip_main_object_empty = false
    @error_mode = 'strict'
end

Instance Attribute Details

#error_modeObject

Returns the value of attribute error_mode.



2
3
4
# File 'lib/config/config.rb', line 2

def error_mode
  @error_mode
end

#skip_main_object_emptyObject

Returns the value of attribute skip_main_object_empty.



2
3
4
# File 'lib/config/config.rb', line 2

def skip_main_object_empty
  @skip_main_object_empty
end

Instance Method Details

#[](value) ⇒ Object



9
10
11
# File 'lib/config/config.rb', line 9

def [](value)
    self.public_send(value)
end