Class: Configuration
- Inherits:
-
Object
- Object
- Configuration
- Defined in:
- lib/config/config.rb
Instance Attribute Summary collapse
-
#error_mode ⇒ Object
Returns the value of attribute error_mode.
-
#skip_main_object_empty ⇒ Object
Returns the value of attribute skip_main_object_empty.
Instance Method Summary collapse
- #[](value) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_mode ⇒ Object
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_empty ⇒ Object
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 |