to_s() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rss/xml.rb, line 45
      def to_s
        rv = "<#{full_name}"
        attributes.each do |key, value|
          rv << " #{Utils.html_escape(key)}=\"#{Utils.html_escape(value)}\""
        end
        if children.empty?
          rv << "/>"
        else
          rv << ">"
          children.each do |child|
            rv << child.to_s
          end
          rv << "</#{full_name}>"
        end
        rv
      end
Register or log in to add new notes.