In Files

  • rss/0.9.rb
  • rss/2.0.rb

Class/Module Index [+]



RSS 0.9 support

RSS has three different versions. This module contains support for version 0.9.1.

Producing RSS 0.9

Producing our own RSS feeds is easy as well. Let’s make a very basic feed:

require "rss"

rss = RSS::Maker.make("0.91") do |maker| = "en" = "matz" = = "" = "Example Feed" = "A longer description of my feed."
  maker.image.url = ""
  maker.image.title = "An image"
  maker.items.new_item do |item| = ""
    item.title = "Ruby 1.9.2-p136 is released"
    item.updated =

puts rss

As you can see, this is a very Builder-like DSL. This code will spit out an RSS 0.9 feed with one item. If we needed a second item, we’d make another block with maker.items.new_item and build a second one.



Public Class Methods

append_features(klass) click to toggle source
               # File rss/0.9.rb, line 42
def self.append_features(klass)

  klass.install_must_call_validator('', "")

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit