Sha256: 20d1c80b55904ff0203d9eb19a4931b5cc51f84d91c50f94f6a6e14679336861

Contents?: true

Size: 191 Bytes

Versions: 16

Compression:

Stored size: 191 Bytes

Contents

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

16 entries across 16 versions & 3 rubygems

Version Path
libxml-ruby-r19mingw-1.1.4 lib/libxml/attributes.rb
libxml-ruby-1.1.4 lib/libxml/attributes.rb
libxml-ruby-1.1.4-x86-mswin32-60 lib/libxml/attributes.rb
coupa-libxml-ruby-1.1.4 lib/libxml/attributes.rb
libxml-ruby-1.0.0 lib/libxml/attributes.rb
libxml-ruby-1.0.0-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-1.1.0 lib/libxml/attributes.rb
libxml-ruby-1.1.0-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-0.9.9 lib/libxml/attributes.rb
libxml-ruby-0.9.9-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-1.1.2-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-1.1.3 lib/libxml/attributes.rb
libxml-ruby-1.1.3-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-1.1.1 lib/libxml/attributes.rb
libxml-ruby-1.1.1-x86-mswin32-60 lib/libxml/attributes.rb
libxml-ruby-1.1.2 lib/libxml/attributes.rb