Class Rack::File

  1. lib/sinatra/compat.rb
Parent: Object

Methods

public class

  1. const_missing

Public class methods

const_missing (const_name)
[show source]
    # File lib/sinatra/compat.rb, line 38
38:   def self.const_missing(const_name)
39:     if const_name == :MIME_TYPES
40:       hash = Hash.new { |hash,key| Rack::Mime::MIME_TYPES[".#{key}"] }
41:       const_set :MIME_TYPES, hash
42:       sinatra_warn 'Rack::File::MIME_TYPES is deprecated; use Rack::Mime instead.'
43:       hash
44:     else
45:       super
46:     end
47:   end