Class: ImageVise::RenderEngine::Filetype

Inherits:
Struct
  • Object
show all
Defined in:
lib/image_vise/render_engine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#format_parser_formatObject

Returns the value of attribute format_parser_format

Returns:

  • (Object)

    the current value of format_parser_format



5
6
7
# File 'lib/image_vise/render_engine.rb', line 5

def format_parser_format
  @format_parser_format
end

Instance Method Details

#extObject



10
11
12
# File 'lib/image_vise/render_engine.rb', line 10

def ext
  ".#{format_parser_format}"
end

#mimeObject



6
7
8
# File 'lib/image_vise/render_engine.rb', line 6

def mime
  Rack::Mime.mime_type(ext)
end