Class: ChupaText::ConfigurationLoader::MIMETypesLoader
- Inherits:
-
Object
- Object
- ChupaText::ConfigurationLoader::MIMETypesLoader
- Defined in:
- lib/chupa-text/configuration-loader.rb
Instance Method Summary collapse
- #[]=(extension, mime_type) ⇒ Object
-
#initialize(registry) ⇒ MIMETypesLoader
constructor
A new instance of MIMETypesLoader.
Constructor Details
#initialize(registry) ⇒ MIMETypesLoader
Returns a new instance of MIMETypesLoader.
87 88 89 |
# File 'lib/chupa-text/configuration-loader.rb', line 87 def initialize(registry) @registry = registry end |
Instance Method Details
#[]=(extension, mime_type) ⇒ Object
91 92 93 |
# File 'lib/chupa-text/configuration-loader.rb', line 91 def []=(extension, mime_type) @registry.register(extension, mime_type) end |