| Class | RSS::RDF |
| In: |
rss/trackback.rb
rss/syndication.rb rss/dublincore.rb rss/content.rb rss/1.0.rb |
| Parent: | Object |
| PREFIX | = | 'rdf' |
| URI | = | "http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
| encoding | [RW] | |
| rss_version | [RW] | |
| standalone | [RW] | |
| version | [RW] |
# File rss/1.0.rb, line 56 def initialize(version=nil, encoding=nil, standalone=nil) super('1.0', version, encoding, standalone) end
# 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