module Linguist::BlobHelper
def disposition
# => "inline"
# => "attachment; filename=file.tar"
This value is used when serving raw blobs.
Public: Get the Content-Disposition header value
def disposition if text? || image? 'inline' elsif name.nil? "attachment" else "attachment; filename=#{CGI.escape(name)}" end end