1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

suppress warning: shadowing outer local variable - dir & opt

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2017-03-11 16:08:54 +00:00
parent 5242bca205
commit 2c8701fc83

View file

@ -39,7 +39,7 @@ end
template = ARGV.shift or abort opt.to_s
erb = ERB.new(File.read(template), nil, '%-')
erb.filename = template
result = source ? erb.src : erb.result
result = source ? erb.src : proc{erb.result}.call
if output
if ifchange and (vpath.open(output, "rb") {|f| f.read} rescue nil) == result
puts "#{output} #{unchanged}"