Class: XML::Feed::Parser::Rss::Channel

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/xml/libxml/feed/parsers/rss/channel.rb

Instance Attribute Summary

Attributes included from Common

#node

Instance Method Summary collapse

Methods included from Common

#initialize, #method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class XML::Feed::Parser::Rss::Common

Instance Method Details

#itemObject



6
7
8
9
10
11
12
13
# File 'lib/xml/libxml/feed/parsers/rss/channel.rb', line 6

def item
    items = []
    @node.find('./item').each do |x|
        items.push XML::Feed::Parser::Rss::Item.new(x)
    end

    return items
end