class MIME::Image

Image is intented for discrete image content. The subtype indicates the specific image format, such as jpeg or gif.

Public Class Methods

new(body, subtype = 'jpeg', params = {}) click to toggle source
Calls superclass method MIME::DiscreteMedia.new
# File lib/mime/discrete_media.rb, line 46
def initialize(body, subtype = 'jpeg', params = {})
  super(body, "image/#{subtype}", params)
end