Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Name variable for what it is.

  • Loading branch information...
commit e07a07e4b1e93f190a6d09a9205842d09f8e8328 1 parent 44bbbf0
Andy Stewart authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/magic_encoding.rb
4 lib/magic_encoding.rb
@@ -13,7 +13,7 @@ def self.process(options)
13 13 encoding = options[0] || "utf-8"
14 14 directory = options[1] || Dir.pwd
15 15
16   - prefix = "-*- encoding : #{encoding} -*-"
  16 + magic_comment = "-*- encoding : #{encoding} -*-"
17 17
18 18 # TODO : add options for recursivity (and application of the script to a single file)
19 19
@@ -38,7 +38,7 @@ def self.process(options)
38 38 end
39 39
40 40 # set current encoding
41   - lines.insert(0, comment_style.sub('{text}', prefix) + "\n")
  41 + lines.insert(0, comment_style.sub('{text}', magic_comment) + "\n")
42 42 count += 1
43 43
44 44 file.pos = 0

0 comments on commit e07a07e

Please sign in to comment.
Something went wrong with that request. Please try again.