mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Use mime binary
This commit is contained in:
@@ -110,6 +110,13 @@ module Linguist
|
||||
@content_type ||= Mime.content_type_for(extname)
|
||||
end
|
||||
|
||||
# Public: Is the path binary?
|
||||
#
|
||||
# Return true or false
|
||||
def binary?
|
||||
@binary ||= Mime.binary?(extname)
|
||||
end
|
||||
|
||||
def to_s
|
||||
@path.dup
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user