# File lib/libxml/attr.rb, line 99 def to_a inject([]) do |ary,a| ary << [a.name, a.value] ary end end