Class: Writer::Configuration
- Inherits:
-
Object
- Object
- Writer::Configuration
- Defined in:
- lib/writer/configuration.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#date_format ⇒ Object
Returns the value of attribute date_format.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#namer ⇒ Object
Returns the value of attribute namer.
-
#template_path ⇒ Object
Returns the value of attribute template_path.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Configuration
constructor
A new instance of Configuration.
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
#attributes ⇒ Object
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/writer/configuration.rb', line 5 def attributes @attributes end |
#creator ⇒ Object
Returns the value of attribute creator.
5 6 7 |
# File 'lib/writer/configuration.rb', line 5 def creator @creator end |
#date_format ⇒ Object
Returns the value of attribute date_format.
5 6 7 |
# File 'lib/writer/configuration.rb', line 5 def date_format @date_format end |
#log_level ⇒ Object
Returns the value of attribute log_level.
5 6 7 |
# File 'lib/writer/configuration.rb', line 5 def log_level @log_level end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/writer/configuration.rb', line 5 def logger @logger end |
#namer ⇒ Object
Returns the value of attribute namer.
5 6 7 |
# File 'lib/writer/configuration.rb', line 5 def namer @namer end |
#template_path ⇒ Object
Returns the value of attribute template_path.
5 6 7 |
# File 'lib/writer/configuration.rb', line 5 def template_path @template_path end |