This commit is contained in:
erwanlr
2013-10-02 15:36:02 +01:00
parent 8adfcf5866
commit f4460f315e
5 changed files with 7 additions and 21 deletions

View File

@@ -57,15 +57,6 @@ def puts(o = '')
super(o)
end
class File
# @param [ String ] file_path
#
# @return [ String ] The charset of the file
def self.charset(file_path)
%x{file --mime #{file_path}}[%r{charset=([^\n]+)\n}, 1]
end
end
module Terminal
class Table
def render