Skip to content

Commit

Permalink
Address burtlo#94
Browse files Browse the repository at this point in the history
Attempts to fix "uninitialized constant <Module:...>::TreeContext"
failure when generating the class list nav running `yard server`.

See burtlo#94 for details.

If there are tests, I haven't figured out how to run them (see
burtlo#96 for details).
  • Loading branch information
nrser committed Nov 26, 2018
1 parent 177e5ad commit 518dd6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/templates/default/fulldoc/html/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def generate_full_list(objects,type,options = {})
# 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, tree = TreeContext.new)
def class_list(root = Registry.root, tree = self.class.const_get(:TreeContext).new)
return super unless root == Registry.root

cucumber_namespace = YARD::CodeObjects::Cucumber::CUCUMBER_NAMESPACE
Expand Down

0 comments on commit 518dd6e

Please sign in to comment.