class REXML::Element
def has_text?
b.has_text? # => false
b = a[0]
a.has_text? # => true
a = d.root
d = REXML::Document.new 'text
+false+ otherwise:
Returns +true+ if the element has one or more text noded,
has_text? -> true or false
:call-seq:
def has_text? not text().nil? end