class REXML::Element

def texts


ts.map {|t| t.to_s } # => ["text", "more"]
ts.map {|t| t.class } # => [REXML::Text, REXML::Text]
ts.frozen? # => true
ts = d.root.texts
d = REXML::Document.new(xml_string)
xml_string = 'textmore'

Returns a frozen array of the REXML::Text children of the element:

texts -> array_of_text_children
:call-seq:
def texts
  find_all { |child| child.kind_of? Text }.freeze
end