Module: Rubai

Defined in:
lib/rubai.rb,
lib/rubai/rack_app.rb,
lib/rubai/response.rb,
lib/rubai/mime_type.rb,
lib/rubai/rack_response.rb

Defined Under Namespace

Classes: MimeType, RackApp, RackResponse, Response

Class Method Summary collapse

Class Method Details

.mimesObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/rubai.rb', line 7

def self.mimes
  @types ||= {
    css:  "text/css",
    html: "text/html",
    js:   "text/javascript",
    png:  "image/png",
    jpg:  "image/jpeg",
    gif:  "image/gif"
  }
end