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.8.1-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-0.8.0 lib/libxml/attributes.rb
libxml-ruby-0.8.0-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-0.8.1 lib/libxml/attributes.rb
libxml-ruby-0.8.2 lib/libxml/attributes.rb
libxml-ruby-0.8.2-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-0.9.0-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-0.9.1 lib/libxml/attributes.rb
libxml-ruby-0.9.2 lib/libxml/attributes.rb
libxml-ruby-0.9.1-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-0.9.2-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-0.9.3-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-0.8.3 lib/libxml/attributes.rb
libxml-ruby-0.8.3-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-0.9.0 lib/libxml/attributes.rb
libxml-ruby-0.9.5 lib/libxml/attributes.rb
libxml-ruby-0.9.4 lib/libxml/attributes.rb
libxml-ruby-0.9.3 lib/libxml/attributes.rb
libxml-ruby-0.9.4-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-0.9.5-x86-mswin32-60 lib/libxml/attributes.rb