summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-07-21 20:17:47 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-07-21 20:17:47 +0200
commit21d07b305f6293065cf08134cee2c66e727422cf (patch)
tree9fe5d218b19b4c6f38fbd787e254cfad77563e56 /lib
parentea107396fdd72cdbbaf4820d09a87bd879ba7e6c (diff)
downloadcoderay-21d07b305f6293065cf08134cee2c66e727422cf.tar.gz
rename protected method in FileType
Diffstat (limited to 'lib')
-rw-r--r--lib/coderay/helpers/file_type.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/helpers/file_type.rb b/lib/coderay/helpers/file_type.rb
index 5e3a1e7..7de34d5 100644
--- a/lib/coderay/helpers/file_type.rb
+++ b/lib/coderay/helpers/file_type.rb
@@ -38,7 +38,7 @@ module CodeRay
(TypeFromExt[ext2.downcase] if ext2) ||
TypeFromName[name] ||
TypeFromName[name.downcase]
- type ||= shebang(filename) if read_shebang
+ type ||= type_from_shebang(filename) if read_shebang
type
end
@@ -63,7 +63,7 @@ module CodeRay
protected
- def shebang filename
+ def type_from_shebang filename
return unless File.exist? filename
File.open filename, 'r' do |f|
if first_line = f.gets