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

In Files

  • rss/0.9.rb
  • rss/2.0.rb
  • rss/content/2.0.rb
  • rss/dublincore/2.0.rb
  • rss/itunes.rb
  • rss/maker/0.9.rb
  • rss/maker/2.0.rb
  • rss/trackback.rb

Parent

Namespace

Class/Module Index [+]

Quicksearch

RSS::Rss

Attributes

feed_version[W]
rss_version[RW]

Public Class Methods

new(feed_version, version=nil, encoding=nil, standalone=nil) click to toggle source
 
               # File rss/0.9.rb, line 29
def initialize(feed_version, version=nil, encoding=nil, standalone=nil)
  super
  @feed_type = "rss"
end
            

Public Instance Methods

image() click to toggle source
 
               # File rss/0.9.rb, line 42
def image
  if @channel
    @channel.image
  else
    nil
  end
end
            
items() click to toggle source
 
               # File rss/0.9.rb, line 34
def items
  if @channel
    @channel.items
  else
    []
  end
end
            
setup_maker_elements(maker) click to toggle source
 
               # File rss/0.9.rb, line 58
def setup_maker_elements(maker)
  super
  items.each do |item|
    item.setup_maker(maker.items)
  end
  image.setup_maker(maker) if image
  textinput.setup_maker(maker) if textinput
end
            
textinput() click to toggle source
 
               # File rss/0.9.rb, line 50
def textinput
  if @channel
    @channel.textInput
  else
    nil
  end
end