Class: Hermeneutics::Mime

Inherits:
Object
  • Object
show all
Defined in:
lib/hermeneutics/contents.rb

Direct Known Subclasses

Message, Multipart

Class Method Summary collapse

Class Method Details

.find(type) ⇒ Object



354
355
356
# File 'lib/hermeneutics/contents.rb', line 354

def find type
  Mime.types.find { |t| t::MIME === type }
end

.inherited(cls) ⇒ Object



348
349
350
# File 'lib/hermeneutics/contents.rb', line 348

def inherited cls
  Mime.types.push cls
end