private Method

XmlSimple.has_mixed_content?(element)

Determines, if a document element has mixed content.

element:Document element to be checked.

Source Code

# File active_support/vendor/xml-simple-1.0.11/xmlsimple.rb, line 716
def has_mixed_content?(element)
  if element.has_text? && element.has_elements?
    return true if element.texts.join('') !~ /^\s*$/s
  end
  false
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.