Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: b5fd42ab0b
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (14 sloc) 0.326 kB
#JonBardin
class FortyThreePlaces
def self.new_places
places = []
url = "http://www.43places.com/rss/goals/all"
open(url) { |rss|
doc = REXML::Document.new(rss)
doc.elements.each("/rss/channel/item") { |item|
places << item.elements["title"].text
}
return places
}
end
end
Jump to Line
Something went wrong with that request. Please try again.