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

Methods

new   required_uri   to_s  

Included Modules

RSS10 RootElementMixin XMLStyleSheetMixin

Classes and Modules

Class RSS::RDF::Channel
Class RSS::RDF::Image
Class RSS::RDF::Item
Class RSS::RDF::Li
Class RSS::RDF::Seq
Class RSS::RDF::Textinput

Constants

PREFIX = 'rdf'
URI = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"

Attributes

encoding  [RW] 
rss_version  [RW] 
standalone  [RW] 
version  [RW] 

Public Class methods

[Source]

# File rss/1.0.rb, line 56
    def initialize(version=nil, encoding=nil, standalone=nil)
      super('1.0', version, encoding, standalone)
    end

[Source]

# File rss/1.0.rb, line 25
      def required_uri
        URI
      end

Public Instance methods

[Source]

# File rss/1.0.rb, line 60
    def to_s(convert=true, indent=calc_indent)
      next_indent = indent + INDENT
      rv = "\#{xmldecl}\n\#{xml_stylesheet_pi}\n\#{indent}<\#{PREFIX}:RDF\#{ns_declaration(next_indent)}>\n\#{channel_element(false, next_indent)}\n\#{image_element(false, next_indent)}\n\#{item_elements(false, next_indent)}\n\#{textinput_element(false, next_indent)}\n\#{other_element(false, next_indent)}\n\#{indent}</\#{PREFIX}:RDF>\n"
      rv = @converter.convert(rv) if convert and @converter
      remove_empty_newline(rv)
    end

[Validate]