templates/default/fulldoc/html/setup.rb in yard-mruby-0.2.3 vs templates/default/fulldoc/html/setup.rb in yard-mruby-0.3.0
- old
+ new
@@ -49,14 +49,14 @@
# as it is a meta-object.
#
# This method removes the namespace from the root node, generates the class list,
# and then adds it back into the root node.
#
-def class_list(root = Registry.root)
+def class_list(root = Registry.root, tree = TreeContext.new)
return super unless root == Registry.root
include_namespace = YARD::MRuby::CodeObjects::HEADERS_ROOT
root.instance_eval { children.delete include_namespace }
- out = super(root)
+ out = super(root, tree)
root.instance_eval { children.push include_namespace }
out
end