only check for shebangs in executable files

This commit is contained in:
Aman Gupta
2011-11-23 01:37:01 -08:00
parent 61a59c8e84
commit d2118d1471
16 changed files with 9 additions and 1 deletions

View File

@@ -32,6 +32,13 @@ module Linguist
# Returns a String
attr_reader :name
# Public: Read file permissions
#
# Returns a String like '100644'
def mode
File.stat(@path).mode.to_s(8)
end
# Public: Read file contents.
#
# Returns a String.