Class: WriteOnce::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_errorsObject

Returns the value of attribute enforce_errors.



7
8
9
# File 'lib/write_once/configuration.rb', line 7

def enforce_errors
  @enforce_errors
end

#loggerObject

Returns the value of attribute logger.



7
8
9
# File 'lib/write_once/configuration.rb', line 7

def logger
  @logger
end