123456789_123456789_123456789_123456789_123456789_

Class: Mime::AllType

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Type
Instance Chain:
self, Singleton, Type
Inherits: Mime::Type
Defined in: actionpack/lib/action_dispatch/http/mime_type.rb

Constant Summary

Type - Inherited

MIME_NAME, MIME_PARAMETER, MIME_PARAMETER_KEY, MIME_PARAMETER_VALUE, MIME_REGEXP, PARAMETER_SEPARATOR_REGEXP, TRAILING_STAR_REGEXP

Class Method Summary

Type - Inherited

.lookup, .lookup_by_extension, .new, .parse,
.parse_data_with_trailing_star

For an input of 'text', returns [Mime[:json], Mime[:xml], Mime[:ics], Mime[:html], Mime[:css], Mime[:csv], Mime[:js], Mime[:yaml], Mime[:text].

.parse_trailing_star, .register,
.register_alias

Registers an alias that’s not used on MIME type lookup, but can be referenced directly.

.register_callback,
.unregister

This method is opposite of register method.

Instance Attribute Summary

Instance Method Summary

Constructor Details

.newAllType

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/http/mime_type.rb', line 324

def initialize
  super "*/*", nil
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Mime::Type

Instance Attribute Details

#all?Boolean (readonly)

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/http/mime_type.rb', line 328

def all?; true; end

#html?Boolean (readonly)

[ GitHub ]

  
# File 'actionpack/lib/action_dispatch/http/mime_type.rb', line 329

def html?; true; end