Class: File
Instance Method Summary collapse
-
#mime_type ⇒ String
Get mime_type including charset using linux file command.
Instance Method Details
#mime_type ⇒ String
Get mime_type including charset using linux file command
95 96 97 |
# File 'lib/overwrite.rb', line 95 def mime_type `file -ib '#{self.path}'`.chomp end |