Class RSS::RDF::Channel
In: rss/syndication.rb
rss/dublincore.rb
rss/1.0.rb
Parent: Object

Methods

new   required_uri   to_s  

Included Modules

SyndicationModel DublinCoreModel RSS10

Classes and Modules

Class RSS::RDF::Channel::Image
Class RSS::RDF::Channel::Items
Class RSS::RDF::Channel::Textinput

Public Class methods

[Source]

# File rss/1.0.rb, line 231
      def initialize(about=nil)
        super()
        @about = about
      end

[Source]

# File rss/1.0.rb, line 200
        def required_uri
          ::RSS::URI
        end

Public Instance methods

[Source]

# File rss/1.0.rb, line 236
      def to_s(convert=true, indent=calc_indent)
        next_indent = indent + INDENT
        about = ''
        about << %Q!#{PREFIX}:about="#{h @about}"! if @about
        rv = "\#{indent}<channel \#{about}>\n\#{title_element(false, next_indent)}\n\#{link_element(false, next_indent)}\n\#{description_element(false, next_indent)}\n\#{image_element(false, next_indent)}\n\#{items_element(false, next_indent)}\n\#{textinput_element(false, next_indent)}\n\#{other_element(false, next_indent)}\n\#{indent}</channel>\n"
        rv = @converter.convert(rv) if convert and @converter
            rv
      end

[Validate]