Module: BPL::Derivatives::MimeTypeService
- Defined in:
- lib/bpl/derivatives/services/mime_type_service.rb
Class Method Summary collapse
Class Method Details
.mime_type(file_path) ⇒ Object
6 7 8 |
# File 'lib/bpl/derivatives/services/mime_type_service.rb', line 6 def self.mime_type(file_path) MIME::Types.type_for(file_path).first.to_s end |
.type_lookup(m_type) ⇒ Object
10 11 12 |
# File 'lib/bpl/derivatives/services/mime_type_service.rb', line 10 def self.type_lookup(m_type) MIME::Types[m_type].first end |