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(version, &block) click to toggle source
 
               # File rss/maker/base.rb, line 365
def make(version, &block)
  new(version).make(&block)
end
            
new(feed_version) click to toggle source
 
               # File rss/maker/base.rb, line 389
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 399
def make
  if block_given?
    yield(self)
    to_feed
  else
    nil
  end
end
            
to_feed() click to toggle source
 
               # File rss/maker/base.rb, line 408
def to_feed
  feed = make_feed
  setup_xml_stylesheets(feed)
  setup_elements(feed)
  setup_other_elements(feed)
  if feed.valid?
    feed
  else
    nil
  end
end