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.



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

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.



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

def attributes
  @attributes
end

#creatorObject

Returns the value of attribute creator.



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

def creator
  @creator
end

#date_formatObject

Returns the value of attribute date_format.



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

def date_format
  @date_format
end

#log_levelObject

Returns the value of attribute log_level.



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

def log_level
  @log_level
end

#loggerObject

Returns the value of attribute logger.



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

def logger
  @logger
end

#namerObject

Returns the value of attribute namer.



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

def namer
  @namer
end

#template_pathObject

Returns the value of attribute template_path.



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

def template_path
  @template_path
end