Parent

Methods

File

Public Class Methods

charset(file_path) click to toggle source

@param [ String ] file_path

@return [ String ] The charset of the file

# File lib/common/hacks.rb, line 63
def self.charset(file_path)
  %{file --mime #{file_path}}[%{charset=([^\n]+)\n}, 1]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.