mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-19 01:56:33 +08:00
avoid overwriting NSObject class reference by NSObject protocol reference
This commit is contained in:
@@ -222,6 +222,9 @@ class DocsetGenerator
|
||||
node = doc.xpath(".//p[@class='abstract']")
|
||||
return nil if node.empty?
|
||||
|
||||
# FIXME : To avoid overwriting NSObject class reference by NSObject protocol reference
|
||||
return nil if name == "NSObject"
|
||||
|
||||
code << node.text.gsub(/^/m, '# ')
|
||||
code << "\nmodule #{name} # Protocol\n\n"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user