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:
parent
5242bca205
commit
2c8701fc83
1 changed files with 1 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue