class Hermes::Mime

Attributes

types[R]

Public Instance Methods

find(type) click to toggle source
# File lib/hermes/contents.rb, line 343
def find type
  Mime.types.find { |t| t::MIME === type }
end
inherited(cls) click to toggle source
# File lib/hermes/contents.rb, line 337
def inherited cls
  Mime.types.push cls
end