Class Raggle::Feed::List
In: raggle  (CVS)
Parent: Object

Raggle::Feed::List object. The list which contains all of the feeds and feed items for Raggle.

Methods

<<   []   add   categories   category   delete   describe   each   each_index   each_with_index   edit   get   invalidate   move_down   move_up   new   size   sort  

Attributes

feeds  [RW] 

Public Class methods

Raggle::Feed::List constructor.

Example:

  feeds = Feed::list.new

Public Instance methods

Append a feed to this feed list.

Example:

  feeds << feed

Get a feed by id.

Add a new feed to this feed list.

Note: the parameters of this method will change in the near future.

Example:

  feeds.add('pablotron', 'http://www.pablotron.org/rss/', 120)

Get a list of available categories, sorted alphabetically.

Note: categories are case-insensitive.

Example:

  feeds.categories #=> ["News", "Blog"]

Return a list of feeds in the given category.

Delete a feed by id (index).

Raises an exception if the ID is invalid.

Print out description of feed in description window (Ncurses interface).

Iterate over every feed.

Iterate over every feed index.

Iterate over every feed with its index.

Edit a feed by ID. Raises an exception if the ID is invalid.

Get a feed by id (index).

Raises an exception if the ID is invalid.

Mark a feed for updating.

Raises an exception if the ID is invalid.

Move a feed down in the feed list. Wraps to top at bottom of list.

Move a feed up in the feed list. Wraps to bottom at top of list.

Return the number of feeds in this Raggle::Feed::List object.

Example:

  feeds.size #=> 100

Sort feeds by priority then title (case-insensitive).

[Validate]