Class: Paperclip::FileCommandContentTypeDetector

Inherits:
Object
  • Object
show all
Defined in:
lib/paperclip/file_command_content_type_detector.rb

Constant Summary collapse

SENSIBLE_DEFAULT =
"application/octet-stream"

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ FileCommandContentTypeDetector

Returns a new instance of FileCommandContentTypeDetector.



7
8
9
# File 'lib/paperclip/file_command_content_type_detector.rb', line 7

def initialize(filename)
  @filename = filename
end

Instance Method Details

#detectObject



11
12
13
# File 'lib/paperclip/file_command_content_type_detector.rb', line 11

def detect
  type_from_file_command
end