activesupport/lib/active_support/xml_mini/rexml.rb
# Merge all the texts of an element into the hash
#
# hash::
#   Hash to add the converted element to.
# element::
#   XML element whose texts are to me merged into the hash
Merge all the texts of an element into the hash
hash::
Hash to add the converted element to.
element::
XML element whose texts are to me merged into the hash
Merge all the texts of an element into the hash hash :: Hash to add the converted element to . element :: XML element whose texts are to me merged into the hash
def merge_texts!(hash, element)
        unless element.has_text?
          hash
        else
          texts = ''
          element.texts.each { |t| texts << t.value }
          merge!(hash, CONTENT_KEY, texts)
        end
      end
def merge_texts! ( hash , element ) unless element . has_text? hash else texts = '' element . texts . each { | t | texts << t . value } merge! ( hash , CONTENT_KEY , texts ) end end
Merge all the texts of an element into the hash
hash::
Hash to add the converted element to.
Merge all the texts of an element into the hash hash :: Hash to add the converted element to .
# must use value to prevent double-escaping
hash
<not_specific>
element
<not_specific>