method

xhtml

v1_9_1_378 - Show latest stable - Class: RSS::Atom::TextConstruct
xhtml()
public

No documentation available.

# File lib/rss/atom.rb, line 103
      def xhtml
        return @xhtml if @xhtml.nil?
        if @xhtml.is_a?(XML::Element) and
            [@xhtml.name, @xhtml.uri] == ["div", XHTML_URI]
          return @xhtml
        end

        children = @xhtml
        children = [children] unless children.is_a?(Array)
        XML::Element.new("div", nil, XHTML_URI,
                         {"xmlns" => XHTML_URI}, children)
      end