Class: TaintedLove::Configuration
- Inherits:
-
Object
- Object
- TaintedLove::Configuration
- Defined in:
- lib/tainted_love/configuration.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#replacers ⇒ Object
Returns the value of attribute replacers.
-
#reporter ⇒ Object
Returns the value of attribute reporter.
-
#validators ⇒ Object
Returns the value of attribute validators.
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 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
#logger ⇒ Object
Returns the value of attribute logger.
7 8 9 |
# File 'lib/tainted_love/configuration.rb', line 7 def logger @logger end |
#replacers ⇒ Object
Returns the value of attribute replacers.
7 8 9 |
# File 'lib/tainted_love/configuration.rb', line 7 def replacers @replacers end |
#reporter ⇒ Object
Returns the value of attribute reporter.
7 8 9 |
# File 'lib/tainted_love/configuration.rb', line 7 def reporter @reporter end |
#validators ⇒ Object
Returns the value of attribute validators.
7 8 9 |
# File 'lib/tainted_love/configuration.rb', line 7 def validators @validators end |