Class: Paperclip::FileCommandContentTypeDetector
- Inherits:
-
Object
- Object
- Paperclip::FileCommandContentTypeDetector
- Defined in:
- lib/paperclip/file_command_content_type_detector.rb
Constant Summary collapse
- SENSIBLE_DEFAULT =
"application/octet-stream"
Instance Method Summary collapse
- #detect ⇒ Object
-
#initialize(filename) ⇒ FileCommandContentTypeDetector
constructor
A new instance of FileCommandContentTypeDetector.
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
#detect ⇒ Object
9 10 11 |
# File 'lib/paperclip/file_command_content_type_detector.rb', line 9 def detect type_from_file_command end |