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
            

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.

blog comments powered by Disqus