The XML text of the element is simply it’s string value.
24 25 26
# File 'lib/subelements.rb', line 24 def xml_text @value end