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

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

Type - Inherited

Constructor Details

.newAllType

[ GitHub ]

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

def initialize
  super "*/*", :all
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 313

def all?; true; end

#html?Boolean (readonly)

[ GitHub ]

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

def html?; true; end