diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-01 05:43:50 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-01 05:43:50 +0000 |
| commit | 7222bec296a3356a13472454f1f1ff8b208fc881 (patch) | |
| tree | 550af4707b22d099f4d8393e29ef6da424aca813 /lib/rexml/validation | |
| parent | cd7b5c2d6c664e589062f3f400bd0498225a56cb (diff) | |
| download | ruby-7222bec296a3356a13472454f1f1ff8b208fc881.tar.gz ruby-7222bec296a3356a13472454f1f1ff8b208fc881.tar.xz ruby-7222bec296a3356a13472454f1f1ff8b208fc881.zip | |
* lib/rexml: 1.9 patch from Sam Ruby mentioned in his blog:
<http://intertwingly.net/blog/2007/12/31/Porting-REXML-to-Ruby-1-9>
[ruby-core:14639]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/validation')
| -rw-r--r-- | lib/rexml/validation/validation.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rexml/validation/validation.rb b/lib/rexml/validation/validation.rb index 160ea96b3..93f5bfb32 100644 --- a/lib/rexml/validation/validation.rb +++ b/lib/rexml/validation/validation.rb @@ -33,8 +33,8 @@ module REXML sattr = [:start_attribute, nil] eattr = [:end_attribute] text = [:text, nil] - k,v = event[2].find { |k,v| - sattr[1] = k + k,v = event[2].find { |key,value| + sattr[1] = key #puts "Looking for #{sattr.inspect}" m = @current.next( sattr ) #puts "Got #{m.inspect}" @@ -47,7 +47,7 @@ module REXML @current = m else #puts "Didn't get end" - text[1] = v + text[1] = value #puts "Looking for #{text.inspect}" m = m.next( text ) #puts "Got #{m.inspect}" |
