Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • rss/maker/base.rb
  • rss/maker/taxonomy.rb

Class/Module Index [+]

Quicksearch

RSS::Maker::RSSBase

Attributes

encoding[RW]
feed_version[R]
rss_version[R]
standalone[RW]
version[RW]

Public Class Methods

make(*args, &block) click to toggle source
 
               # File rss/maker/base.rb, line 401
def make(*args, &block)
  new(*args).make(&block)
end
            
new(feed_version) click to toggle source
 
               # File rss/maker/base.rb, line 427
def initialize(feed_version)
  super(self)
  @feed_type = nil
  @feed_subtype = nil
  @feed_version = feed_version
  @version = "1.0"
  @encoding = "UTF-8"
  @standalone = nil
end
            

Public Instance Methods

make() click to toggle source
 
               # File rss/maker/base.rb, line 437
def make
  yield(self)
  to_feed
end
            
to_feed() click to toggle source
 
               # File rss/maker/base.rb, line 442
def to_feed
  feed = make_feed
  setup_xml_stylesheets(feed)
  setup_elements(feed)
  setup_other_elements(feed)
  feed.validate
  feed
end
            

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 Documenting-ruby.org.