Class: FakerMaker::Configuration

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

Overview

Configuration class, holds all the config options for FM

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

Parameters:

  • value

    the value to set the attribute audit to.



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

def audit=(value)
  @audit = value
end

#audit_destinationObject

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

Returns:

  • (Boolean)


15
16
17
# File 'lib/faker_maker/configuration.rb', line 15

def audit?
  @audit
end