I think it might be because the RSSParser is an asynchronous request. You probably return @data
empty, before the request is completed.
EDIT: From BubbleWrap docs, you can set a delegate for the parser. Something like
feed_parser = BW::RSSParser.new("http://feeds.feedburner.com/sdrbpodcast")
feed_parser.delegate = self
feed_parser.parse do |item|
@data << item.to_hash
end
def when_parser_is_done
table_data
end