class Sinatra::Base
def provides(*types)
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