method
to_s
to_s(need_convert=true, indent='')
public
Hide source
# File lib/rss/rss.rb, line 633 def to_s(need_convert=true, indent='') if self.class.have_content? return "" unless @content rv = tag(indent) do |next_indent| h(@content) end else rv = tag(indent) do |next_indent| self.class.to_element_methods.collect do |method_name| __send__(method_name, false, next_indent) end end end rv = convert(rv) if need_convert rv end