diff options
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 |