Class: ChupaText::ConfigurationLoader::MIMETypesLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/chupa-text/configuration-loader.rb

Instance Method Summary collapse

Constructor Details

#initialize(registry) ⇒ MIMETypesLoader

Returns a new instance of MIMETypesLoader.



86
87
88
# File 'lib/chupa-text/configuration-loader.rb', line 86

def initialize(registry)
  @registry = registry
end

Instance Method Details

#[]=(extension, mime_type) ⇒ Object



90
91
92
# File 'lib/chupa-text/configuration-loader.rb', line 90

def []=(extension, mime_type)
  @registry.register(extension, mime_type)
end