diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-05 07:54:32 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-05 07:54:32 +0000 |
commit | e3300dce829955390b5099c013ab4452a74ffd20 (patch) | |
tree | 15ee88b1ac001411f23f966c5c5ebbc9d02fa848 /ext/ripper/tools/preproc.rb | |
parent | cd6d919373f2d0a1631b10a666d892365407821c (diff) |
{ext,test}/ripper: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper/tools/preproc.rb')
-rwxr-xr-x | ext/ripper/tools/preproc.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ripper/tools/preproc.rb b/ext/ripper/tools/preproc.rb index 2377506cd5..16449ec81c 100755 --- a/ext/ripper/tools/preproc.rb +++ b/ext/ripper/tools/preproc.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # $Id$ require 'optparse' @@ -24,7 +24,7 @@ def main unless ARGV.size == 1 abort "wrong number of arguments (#{ARGV.size} for 1)" end - out = "" + out = "".dup File.open(ARGV[0]) {|f| prelude f, out grammar f, out |