Class: File

Inherits:
Object show all
Defined in:
lib/overwrite.rb

Instance Method Summary collapse

Instance Method Details

#mime_typeString

Returns mime_type including charset using linux cmd command

Returns:

  • (String)

    mime_type including charset using linux cmd command


130
131
132
# File 'lib/overwrite.rb', line 130

def mime_type
  `file -ib '#{self.path}'`.chomp
end