Module: PandaGo::ContentTypes

Defined in:
lib/pandago/content_types.rb

Constant Summary collapse

TYPES =
{
  "markdown" => "text/markdown; charset=UTF-8",
  "html" => "text/html; charset=utf-8",
  "docx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
}

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object



11
12
13
# File 'lib/pandago/content_types.rb', line 11

def self.[](name)
  TYPES.fetch(name.to_s) { |name| raise ContentTypeNotSupportedError, name }
end