Class: ChupaText::Configuration
- Inherits:
-
Object
- Object
- ChupaText::Configuration
- Defined in:
- lib/chupa-text/configuration.rb
Defined Under Namespace
Classes: DecomposerConfiguration
Instance Attribute Summary collapse
-
#decomposer ⇒ Object
readonly
Returns the value of attribute decomposer.
-
#mime_type_registry ⇒ Object
Returns the value of attribute mime_type_registry.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
34 35 36 37 |
# File 'lib/chupa-text/configuration.rb', line 34 def initialize @decomposer = DecomposerConfiguration.new @mime_type_registry = MIMEType.registry end |
Instance Attribute Details
#decomposer ⇒ Object (readonly)
Returns the value of attribute decomposer.
32 33 34 |
# File 'lib/chupa-text/configuration.rb', line 32 def decomposer @decomposer end |
#mime_type_registry ⇒ Object
Returns the value of attribute mime_type_registry.
33 34 35 |
# File 'lib/chupa-text/configuration.rb', line 33 def mime_type_registry @mime_type_registry end |
Class Method Details
.default ⇒ Object
20 21 22 |
# File 'lib/chupa-text/configuration.rb', line 20 def default @default ||= load_default end |
.load_default ⇒ Object
24 25 26 27 28 29 |
# File 'lib/chupa-text/configuration.rb', line 24 def load_default configuration = new loader = ConfigurationLoader.new(configuration) loader.load("chupa-text.conf") configuration end |