Sha256: 748d59d8707e0999745315e88d53a287fa31d3ef1c902162353d0af31b2c009c

Contents?: true

Size: 223 Bytes

Versions: 72

Compression:

Stored size: 223 Bytes

Contents

# encoding: UTF-8

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

72 entries across 72 versions & 1 rubygems

Version Path
libxml-ruby-3.2.2-x64-mingw-ucrt lib/libxml/attributes.rb
libxml-ruby-3.2.2 lib/libxml/attributes.rb
libxml-ruby-3.2.1-x64-mingw32 lib/libxml/attributes.rb
libxml-ruby-3.2.1 lib/libxml/attributes.rb
libxml-ruby-3.2.0 lib/libxml/attributes.rb
libxml-ruby-3.2.0-x64-mingw32 lib/libxml/attributes.rb
libxml-ruby-3.1.0-x64-mingw32 lib/libxml/attributes.rb
libxml-ruby-3.1.0 lib/libxml/attributes.rb
libxml-ruby-3.0.0-x64-mingw32 lib/libxml/attributes.rb
libxml-ruby-3.0.0 lib/libxml/attributes.rb
libxml-ruby-2.9.0-x64-mingw32 lib/libxml/attributes.rb
libxml-ruby-2.9.0 lib/libxml/attributes.rb
libxml-ruby-2.8.0 lib/libxml/attributes.rb
libxml-ruby-2.7.0-x86-mingw32 lib/libxml/attributes.rb
libxml-ruby-2.7.0 lib/libxml/attributes.rb
libxml-ruby-2.6.0-x86-mingw32 lib/libxml/attributes.rb
libxml-ruby-2.6.0 lib/libxml/attributes.rb
libxml-ruby-2.5.0-x86-mingw32 lib/libxml/attributes.rb
libxml-ruby-2.5.0 lib/libxml/attributes.rb
libxml-ruby-2.4.0-x86-mingw32 lib/libxml/attributes.rb