Module: ChupaText::MIMEType

Defined in:
lib/chupa-text/mime-type.rb

Class Method Summary collapse

Class Method Details

.registryMIMETypeRegistry

Returns The MIME type registry for this process.

Returns:



22
23
24
# File 'lib/chupa-text/mime-type.rb', line 22

def registry
  @@registry ||= MIMETypeRegistry.new
end

.registry=(registry) ⇒ Object

Normally, this method should not be used. It is just for test.

Parameters:

  • registry (MIMETypeRegistry, nil)

    The new MIME type registry for this process. If you specify nil, reset the registry.



31
32
33
# File 'lib/chupa-text/mime-type.rb', line 31

def registry=(registry)
  @@registry = registry
end