Class: FakerMaker::Configuration
- Inherits:
-
Object
- Object
- FakerMaker::Configuration
- Defined in:
- lib/faker_maker/configuration.rb
Overview
Configuration class, holds all the config options for FM
Instance Attribute Summary collapse
-
#audit ⇒ Object
writeonly
Sets the attribute audit.
-
#audit_destination ⇒ Object
Returns the value of attribute audit_destination.
Instance Method Summary collapse
- #audit? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 |
# File 'lib/faker_maker/configuration.rb', line 10 def initialize @audit = false @audit_destination = $stdout end |
Instance Attribute Details
#audit=(value) ⇒ Object (writeonly)
Sets the attribute audit
7 8 9 |
# File 'lib/faker_maker/configuration.rb', line 7 def audit=(value) @audit = value end |
#audit_destination ⇒ Object
Returns the value of attribute audit_destination.
8 9 10 |
# File 'lib/faker_maker/configuration.rb', line 8 def audit_destination @audit_destination end |
Instance Method Details
#audit? ⇒ Boolean
15 16 17 |
# File 'lib/faker_maker/configuration.rb', line 15 def audit? @audit end |