Files

Class/Module Index [+]

Quicksearch

Dragonfly::Job::OverrideInstanceMethods

This is needed because we need a way of overriding the methods added to Job objects by the analyser and by the job shortcuts like 'thumb', etc. If we had traits/classboxes in ruby maybe this wouldn't be needed Think of it as like a normal instance method but with a css-like !important after it

Public Instance Methods

format() click to toggle source
# File lib/dragonfly/job.rb, line 202
def format
  apply
  meta[:format] || (ext.to_sym if ext && app.trust_file_extensions) || analyse(:format)
end
mime_type() click to toggle source
# File lib/dragonfly/job.rb, line 207
def mime_type
  app.mime_type_for(format) || analyse(:mime_type) || app.fallback_mime_type
end
to_s() click to toggle source
# File lib/dragonfly/job.rb, line 211
def to_s
  super.sub(/#<Class:\w+>/, 'Extended Dragonfly::Job')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.