def update_methods!
entries = []
constants = []
doc = Net::HTTP.get(URI.parse("#{url}/fr_method_index.html"))
doc = Nokogiri::HTML(doc.gsub(/<a(.*?)>(.*?)<\/a>/) { "<a#{$1}>#{$2.gsub("<", "<").gsub(">", ">")}" })
doc.css("a").each do |a|
names = a.text.split(" ")
next if names.empty?
method = names[0]
constant = names[1].gsub(/[\(|\)]/, "")
url = self.url + "/classes/" + constant.gsub("::", "/") + ".html"
constant = self.constants.find_or_create_by_hash(:name => constant, :url => url)
url = self.url + "/" + a["href"]
constant.entries.find_or_create_by_hash(:name => method, :url => url)
end
end