Sha256: 83c1539a10fbd39da55b9f696a526312435e008c8134ada2bac4a733741849a6

Contents?: true

Size: 316 Bytes

Versions: 26

Compression:

Stored size: 316 Bytes

Contents

# $Id: libxml.rb 374 2008-07-11 04:51:41Z cfis $ 
# Please see the LICENSE file for copyright and distribution information 

module LibXML
  module XML
    class Attributes
      def to_h
        inject({}) do |hash, attr|
          hash[attr.name] = attr.value
          hash
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
libxml-ruby-0.9.6 lib/libxml/attributes.rb
libxml-ruby-0.9.6-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-0.9.7 lib/libxml/attributes.rb
libxml-ruby-0.9.7-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-0.9.8 lib/libxml/attributes.rb
libxml-ruby-0.9.8-x86-mswin32-60 lib/libxml/attributes.rb