Module Sinatra::RespondTo::Helpers
In: lib/sinatra/respond_to.rb

Methods

External Aliases

content_type -> content_type_without_save

Public Class methods

Public Instance methods

Extension holds trimmed extension. This is extra usefull when you want to build original URI (with extension) You can simply call "#{request.env[‘REQUEST_URI’]}.#{extension}"

This helper will holds current format. Helper should be accesible from all places in Sinatra

[Validate]