summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-12 19:59:22 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-12 19:59:22 (GMT)
commit8326a747f991be50b3cf0ab9eab8c091f904e14c (patch)
treede3932066b38a78573050f6c6143e9c330d6954d /bin
parent1137a46a81eda5772a8d69c24f5be4ef0a519174 (diff)
erb: suppress warnings
* bin/erb (ERB::Main#run): get rid of shadowing outer local variables. [ruby-core:65772] [Feature #10395] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bin')
-rwxr-xr-xbin/erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/erb b/bin/erb
index d6d7610..1ba49c9 100755
--- a/bin/erb
+++ b/bin/erb
@@ -141,7 +141,7 @@ EOU
bind = TOPLEVEL_BINDING.taint
if variables
enc = erb.encoding
- variables.each do |var, val|
+ for var, val in variables do
val = val.encode(enc) if val
bind.local_variable_set(var, val)
end