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.



5
6
7
# File 'lib/paperclip/file_command_content_type_detector.rb', line 5

def initialize(filename)
  @filename = filename
end

Instance Method Details

#detectObject



9
10
11
# File 'lib/paperclip/file_command_content_type_detector.rb', line 9

def detect
  type_from_file_command
end