Class: TaintedLove::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
12
13
14
# File 'lib/tainted_love/configuration.rb', line 9

def initialize
  @reporter = TaintedLove::Reporter::StdoutReporter.new
  @logger = Logger.new(STDERR)
  @validators = []
  @replacers = []
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



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

def logger
  @logger
end

#replacersObject

Returns the value of attribute replacers.



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

def replacers
  @replacers
end

#reporterObject

Returns the value of attribute reporter.



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

def reporter
  @reporter
end

#validatorsObject

Returns the value of attribute validators.



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

def validators
  @validators
end