instance method
has_mixed_content?
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3 PrivateSignature
has_mixed_content?(element)
Determines, if a document element has mixed content.
- element
-
Document element to be checked.
Parameters
-
elementreq
Source
# File activesupport/lib/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
Defined in activesupport/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb line 716
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in XmlSimple