aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/vendor/html-scanner
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-09-22 16:47:22 -0300
committerEmilio Tagua <miloops@gmail.com>2010-09-27 11:19:22 -0300
commit583ddf22a2a9d9f903ff0f2dba72cc04e80a378f (patch)
tree4b20582ac4b4aecc44487d88bc69690d2ac2aa9b /actionpack/lib/action_controller/vendor/html-scanner
parentdafb4bd33ba26bf8ca3455db270fee843c8bd2fd (diff)
downloadrails-583ddf22a2a9d9f903ff0f2dba72cc04e80a378f.tar.gz
rails-583ddf22a2a9d9f903ff0f2dba72cc04e80a378f.tar.bz2
rails-583ddf22a2a9d9f903ff0f2dba72cc04e80a378f.zip
Remove more warnings shadowing outer local variable.
Diffstat (limited to 'actionpack/lib/action_controller/vendor/html-scanner')
-rw-r--r--actionpack/lib/action_controller/vendor/html-scanner/html/node.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb b/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb
index 85250721e7..c82324dee6 100644
--- a/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb
+++ b/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb
@@ -18,12 +18,12 @@ module HTML #:nodoc:
hash[k] = Conditions.new(v)
when :children
hash[k] = v = keys_to_symbols(v)
- v.each do |k,v2|
- case k
+ v.each do |key,v2|
+ case key
when :count, :greater_than, :less_than
# keys are valid, and require no further processing
when :only
- v[k] = Conditions.new(v2)
+ v[key] = Conditions.new(v2)
else
raise "illegal key #{k.inspect} => #{v2.inspect}"
end