instance method has_mixed_content?

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3 Private

Signature

has_mixed_content?(element)

Determines, if a document element has mixed content.

element

Document element to be checked.

Parameters

element req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close