lib/saml/kit/metadata.rb in saml-kit-1.0.12 vs lib/saml/kit/metadata.rb in saml-kit-1.0.13

- old
+ new

@@ -146,11 +146,11 @@ certificates.find { |x| x.for?(use) && x.fingerprint == fingerprint } end # Returns the XML document converted to a Hash. def to_h - @xml_hash ||= Hash.from_xml(to_xml) + @to_h ||= Hash.from_xml(to_xml) end # Returns the XML document as a String. # # @param pretty [Symbol] true to return a human friendly version of the XML. @@ -208,10 +208,10 @@ attr_reader :xml # @!visibility private def to_nokogiri - @nokogiri ||= Nokogiri::XML(xml) + @to_nokogiri ||= Nokogiri::XML(xml) end def at_xpath(xpath) to_nokogiri.at_xpath(xpath, NAMESPACES) end