Class: Writer::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Configuration

Returns a new instance of Configuration.



8
9
10
11
12
13
14
15
16
# File 'lib/writer/configuration.rb', line 8

def initialize(attrs = {})
  attrs = attrs.merge(config)

  attrs.each do |attr, value|
    self.send("#{attr}=", value)
  end

  @attributes = attrs
end

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



5
6
7
# File 'lib/writer/configuration.rb', line 5

def attributes
  @attributes
end

#creatorObject

Returns the value of attribute creator.



5
6
7
# File 'lib/writer/configuration.rb', line 5

def creator
  @creator
end

#date_formatObject

Returns the value of attribute date_format.



5
6
7
# File 'lib/writer/configuration.rb', line 5

def date_format
  @date_format
end

#log_levelObject

Returns the value of attribute log_level.



5
6
7
# File 'lib/writer/configuration.rb', line 5

def log_level
  @log_level
end

#loggerObject

Returns the value of attribute logger.



5
6
7
# File 'lib/writer/configuration.rb', line 5

def logger
  @logger
end

#namerObject

Returns the value of attribute namer.



5
6
7
# File 'lib/writer/configuration.rb', line 5

def namer
  @namer
end

#template_pathObject

Returns the value of attribute template_path.



5
6
7
# File 'lib/writer/configuration.rb', line 5

def template_path
  @template_path
end