I need some help understanding how the Ruby rss parser works. I'm trying to access to the content of the first 10 entries from this feed with this code:
URL = 'http://weblog.rubyonrails.org/feed/atom.xml'...def initialize(versionName) open(URL) do |rss| feed = RSS::Parser.parse(rss) feed.entry(1..10).each do |entry| @attributes[:descriptions][:"#{versionName}"] = entry.content end endend
While debugging, I realized entry.content
doesn't give me the correct data. Instead, it gives me this endless data which even causes my console to get stuck. Anyone could tell what would be the correct way to parse my feed in my situation?