Class: WriteOnce::Configuration
- Inherits:
-
Object
- Object
- WriteOnce::Configuration
- Defined in:
- lib/write_once/configuration.rb
Instance Attribute Summary collapse
-
#enforce_errors ⇒ Object
Returns the value of attribute enforce_errors.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 |
# File 'lib/write_once/configuration.rb', line 9 def initialize @enforce_errors = true @logger = Logger.new(STDOUT) end |
Instance Attribute Details
#enforce_errors ⇒ Object
Returns the value of attribute enforce_errors.
7 8 9 |
# File 'lib/write_once/configuration.rb', line 7 def enforce_errors @enforce_errors end |
#logger ⇒ Object
Returns the value of attribute logger.
7 8 9 |
# File 'lib/write_once/configuration.rb', line 7 def logger @logger end |