module Shrine::Plugins::DetermineMimeType::ClassMethods

Defined in:

shrine/plugins/determine_mime_type.cr

Instance Method Summary

Instance Method Detail

def determine_mime_type(io) #

Determines the MIME type of the IO object by calling the specified analyzer.


[View source]
def mime_type_analyzer(name : Tools) #

Returns callable mime type analyzer object.


[View source]
def mime_type_analyzers #

Returns a hash of built-in MIME type analyzers, where keys are analyzer names and values are #call-able objects which accepts the IO object.


[View source]