Parent

Methods

LibXML::XML::Attributes

Public Instance Methods

to_h() click to toggle source
# File lib/libxml/attributes.rb, line 5
def to_h
  inject({}) do |hash, attr|
    hash[attr.name] = attr.value
    hash
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.