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-5.0.3-x64-mingw-ucrt lib/libxml/attributes.rb
libxml-ruby-5.0.3 lib/libxml/attributes.rb
libxml-ruby-5.0.2-x64-mingw-ucrt lib/libxml/attributes.rb
libxml-ruby-5.0.2 lib/libxml/attributes.rb
libxml-ruby-5.0.1-x64-mingw-ucrt lib/libxml/attributes.rb
libxml-ruby-5.0.1 lib/libxml/attributes.rb
libxml-ruby-5.0.0-x64-mingw-ucrt lib/libxml/attributes.rb
libxml-ruby-5.0.0 lib/libxml/attributes.rb
libxml-ruby-4.1.2-x64-mingw-ucrt lib/libxml/attributes.rb
libxml-ruby-4.1.2 lib/libxml/attributes.rb
libxml-ruby-4.1.1-x64-mingw-ucrt lib/libxml/attributes.rb
libxml-ruby-4.1.1 lib/libxml/attributes.rb
libxml-ruby-4.1.0 lib/libxml/attributes.rb
libxml-ruby-4.0.0-x64-mingw-ucrt lib/libxml/attributes.rb
libxml-ruby-4.0.0 lib/libxml/attributes.rb
libxml-ruby-3.2.4-x64-mingw-ucrt lib/libxml/attributes.rb
libxml-ruby-3.2.4 lib/libxml/attributes.rb
libxml-ruby-3.2.3-x64-mingw-ucrt lib/libxml/attributes.rb
libxml-ruby-3.2.3 lib/libxml/attributes.rb
libxml-ruby-3.2.2-x64-mingw32 lib/libxml/attributes.rb