Class: File
Instance Method Summary collapse
-
#mime_type ⇒ String
Mime_type including charset using linux cmd command.
Instance Method Details
#mime_type ⇒ String
Returns mime_type including charset using linux cmd command.
70 71 72 |
# File 'lib/overwrite.rb', line 70 def mime_type `file -ib '#{self.path}'`.chomp end |