summaryrefslogtreecommitdiff
path: root/lib/coderay.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay.rb')
-rw-r--r--lib/coderay.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/coderay.rb b/lib/coderay.rb
index c3de20b..2092542 100644
--- a/lib/coderay.rb
+++ b/lib/coderay.rb
@@ -180,9 +180,9 @@ module CodeRay
# Example:
# require 'coderay'
# page = CodeRay.scan_file('some_c_code.c').html
- def scan_file filename, lang = :auto, options = {}, &block
- lang = CodeRay::FileType.fetch filename, :text, true if lang == :auto
- code = File.read filename
+ def scan_file file_name, lang = :auto, options = {}, &block
+ lang = CodeRay::FileType.fetch file_name, :text, true if lang == :auto
+ code = File.read file_name
scan code, lang, options, &block
end