Receiving notification of an update from the rss_timeline gem

Example

require 'logger'
require 'rss_timeline'


feeds = [
  'http://feeds.bbci.co.uk/news/rss.xml?edition=uk',
  'http://rss.slashdot.org/Slashdot/slashdot',
  'http://open.live.bbc.co.uk/weather/feeds/en/2650225/3dayforecast.rss'
]

timeline = RSStimeline.new feeds

def timeline.on_update()
  puts 'timeline updated'
end

timeline.update


In the above example whenever the RSS timeline is updated the message timeline updated is displayed.

Notes: