NSObject and NSProxy does not have the super class

fix the following warning:
	[warn]: 	in file '/tmp/rb_docset/t189.rb':2:
		2: class NSProxy < none

	[warn]: 	in file '/tmp/rb_docset/t180.rb':2:
		2: class NSObject < none
This commit is contained in:
Watson
2012-11-01 13:52:28 +09:00
parent 0364deeb5c
commit 9a3676acf5

View File

@@ -59,8 +59,12 @@ class DocsetGenerator
code = doc.xpath(".//p[@class='abstract']")[0].text
code.gsub!(/^/m, '# ')
code << "\nclass #{name} < #{sclass}\n\n"
if sclass == "none"
code << "\nclass #{name}\n\n"
else
code << "\nclass #{name} < #{sclass}\n\n"
end
# Properties.
doc.xpath("//div[@class='api propertyObjC']").each do |node|
decl = node.xpath(".//div[@class='declaration']/div[@class='declaration']").text