In Files

  • rss/maker/1.0.rb
  • rss/maker/dublincore.rb
  • rss/maker/image.rb
  • rss/maker/taxonomy.rb

Class/Module Index [+]

Quicksearch

RSS::Maker::RSS10::Channel

Public Instance Methods

have_required_values?() click to toggle source
 
               # File rss/maker/1.0.rb, line 48
def have_required_values?
  @about and @title and @link and @description
end
            
to_rss(rss) click to toggle source
 
               # File rss/maker/1.0.rb, line 28
def to_rss(rss)
  set = false
  if @about
    channel = RDF::Channel.new(@about)
    set = setup_values(channel)
    if set
      channel.dc_dates.clear
      rss.channel = channel
      setup_items(rss)
      setup_image(rss)
      setup_textinput(rss)
      setup_other_elements(rss)
    end
  end

  if (!@about or !set) and variable_is_set?
    raise NotSetError.new("maker.channel", not_set_required_variables)
  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