mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user