public Method

RootElementMixin.to_xml(version=nil, &block)

There's no documentation for this item.

Source Code

# File rss/rss.rb, line 982
def to_xml(version=nil, &block)
  if version.nil? or version == @rss_version
    to_s
  else
    RSS::Maker.make(version) do |maker|
      setup_maker(maker)
      block.call(maker) if block
    end.to_s
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.