From 9a3676acf52afeed32a53c73f508df9e308d3068 Mon Sep 17 00:00:00 2001 From: Watson Date: Thu, 1 Nov 2012 13:52:28 +0900 Subject: [PATCH] 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 --- doc/docset.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/docset.rb b/doc/docset.rb index 58b69622..0902b0d1 100644 --- a/doc/docset.rb +++ b/doc/docset.rb @@ -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