Class: Plotline::Configuration
- Inherits:
-
Object
- Object
- Plotline::Configuration
- Defined in:
- lib/plotline/configuration.rb
Instance Attribute Summary collapse
-
#content_classes ⇒ Object
Returns the value of attribute content_classes.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #logger(logger = nil) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
5 6 7 |
# File 'lib/plotline/configuration.rb', line 5 def initialize @content_classes = [].freeze end |
Instance Attribute Details
#content_classes ⇒ Object
Returns the value of attribute content_classes.
3 4 5 |
# File 'lib/plotline/configuration.rb', line 3 def content_classes @content_classes end |
Instance Method Details
#logger(logger = nil) ⇒ Object
9 10 11 12 |
# File 'lib/plotline/configuration.rb', line 9 def logger(logger = nil) @logger ||= logger || Logger.new(STDOUT) @logger end |