Type:
Class
Constants:
TRAILING_STAR_REGEXP : /(text|application)\/\*/
PARAMETER_SEPARATOR_REGEXP : /;\s*\w+="?\w+"?/

Encapsulates the notion of a mime type. Can be used at render time, for example, with:

class PostsController < ActionController::Base
  def show
    @post = Post.find(params[:id])

    respond_to do |format|
      format.html
      format.ics { render text: post.to_ics, mime_type: Mime::Type["text/calendar"]  }
      format.xml { render xml: @people }
    end
  end
end
ref

ref() Instance Public methods

2015-06-20 00:00:00
===

===(list) Instance Public methods

2015-06-20 00:00:00
to_sym

to_sym() Instance Public methods

2015-06-20 00:00:00
parse

parse(accept_header) Class Public methods

2015-06-20 00:00:00
to_s

to_s() Instance Public methods

2015-06-20 00:00:00
register_alias

register_alias(string, symbol, extension_synonyms = []) Class Public methods Registers

2015-06-20 00:00:00
parse_trailing_star

parse_trailing_star(accept_header) Class Public methods

2015-06-20 00:00:00
unregister

unregister(symbol) Class Public methods This method is opposite of register

2015-06-20 00:00:00