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.



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