Class: XML::Feed::Builder::Rss
- Inherits:
-
Object
- Object
- XML::Feed::Builder::Rss
- Defined in:
- lib/xml/libxml/feed/builders/rss.rb,
lib/xml/libxml/feed/builders/rss.rb
Defined Under Namespace
Classes: Channel, Channels, Item, Items
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #channel ⇒ Object
-
#initialize(version, parser = nil) ⇒ Rss
constructor
A new instance of Rss.
- #to_xml ⇒ Object
Constructor Details
#initialize(version, parser = nil) ⇒ Rss
Returns a new instance of Rss.
117 118 119 120 121 122 |
# File 'lib/xml/libxml/feed/builders/rss.rb', line 117 def initialize(version, parser=nil) @version = version @parser = parser build_document end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
115 116 117 |
# File 'lib/xml/libxml/feed/builders/rss.rb', line 115 def doc @doc end |
#version ⇒ Object
Returns the value of attribute version.
114 115 116 |
# File 'lib/xml/libxml/feed/builders/rss.rb', line 114 def version @version end |