Class: Mime::AllType

Inherits:
Type
  • Object
show all
Includes:
Singleton
Defined in:
lib/action_dispatch/http/mime_type.rb

Constant Summary

Constants inherited from Type

Type::PARAMETER_SEPARATOR_REGEXP, Type::TRAILING_STAR_REGEXP

Instance Attribute Summary

Attributes inherited from Type

#hash, #symbol

Instance Method Summary collapse

Methods inherited from Type

#==, #===, #=~, #eql?, lookup, lookup_by_extension, parse, parse_data_with_trailing_star, parse_trailing_star, #ref, register, register_alias, register_callback, #to_s, #to_str, #to_sym, unregister

Constructor Details

#initializeAllType

Returns a new instance of AllType.



332
333
334
# File 'lib/action_dispatch/http/mime_type.rb', line 332

def initialize
  super '*/*', :all
end

Dynamic Method Handling

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

Instance Method Details

#all?Boolean

Returns:

  • (Boolean)


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

def all?; true; end

#html?Boolean

Returns:

  • (Boolean)


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

def html?; true; end