vendor/bundle/ruby/1.8/gems/sinatra-1.2.8/lib/sinatra/base.rb
# Condition for matching mimetypes. Accepts file extensions.
Condition for matching mimetypes. Accepts file extensions.
Condition for matching mimetypes . Accepts file extensions .
def provides(*types)
        types.map! { |t| mime_types(t) }
        types.flatten!
        condition do
          if type = request.preferred_type(types)
            content_type(type)
            true
          else
            false
          end
        end
      end
def provides ( * types ) types . map! { | t | mime_types ( t ) } types . flatten! condition do if type = request . preferred_type ( types ) content_type ( type ) true else false end end end
Condition for matching mimetypes.
Condition for matching mimetypes .
types