Class: XML::Feed::Builder::Rss::Items
- Inherits:
-
Object
- Object
- XML::Feed::Builder::Rss::Items
- Includes:
- Enumerable
- Defined in:
- lib/xml/libxml/feed/builders/rss.rb
Instance Method Summary collapse
- #[](x) ⇒ Object
- #create {|node| ... } ⇒ Object
- #each ⇒ Object
-
#initialize(doc, channel) ⇒ Items
constructor
A new instance of Items.
Constructor Details
#initialize(doc, channel) ⇒ Items
Returns a new instance of Items.
48 49 50 51 |
# File 'lib/xml/libxml/feed/builders/rss.rb', line 48 def initialize(doc, channel) @doc = doc @channel = channel end |
Instance Method Details
#[](x) ⇒ Object
65 66 67 |
# File 'lib/xml/libxml/feed/builders/rss.rb', line 65 def [](x) return Item.new(@channel, @channel.find('./item').to_a[x]) end |