summaryrefslogtreecommitdiff
path: root/lib/rexml
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-26 13:56:34 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-26 13:56:34 +0000
commit562648e48ca42e6a263d52677638683add7327a6 (patch)
tree5d9ba26a7a991d781ee1ebf1b6b3e3954ab5314f /lib/rexml
parentb486e50434df45d6e161eb359f576964a783e9e7 (diff)
* lib/rexml/element.rb (REXML::Attributes#to_a): Support
namespaced attributes. [ruby-dev:47277] [Bug #8301] Patch by Ippei Obayashi. Thanks!!! * test/rexml/test_attributes.rb (AttributesTester#test_to_a_with_namespaces): Add a test of the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml')
-rw-r--r--lib/rexml/element.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/element.rb b/lib/rexml/element.rb
index c415830..c30b150 100644
--- a/lib/rexml/element.rb
+++ b/lib/rexml/element.rb
@@ -987,7 +987,7 @@ module REXML
end
def to_a
- values.flatten
+ enum_for(:each_attribute).to_a
end
# Returns the number of attributes the owning Element contains.