YARD doesn't nest classes properly #552

dominikh opened this Issue Jun 9, 2012 · 0 comments


None yet

2 participants

dominikh commented Jun 9, 2012

Given particular circumstances, YARD will not nest classes but create new top nodes.

The following conditions have to be met for the bug to occur:

  • A class nested in another class has to be defined in a file
  • In a different file, the same class has to be reopened while using :: to reference the main namespace

For example with a class A and a class ::A::B, YARD will generate two top level entries, one for A and one for A::B.

Two example files can be found at https://gist.github.com/59e5f0be2e03dc9711b0

The same behaviour occurs when nesting classes in modules or vice versa, probably with all constants.

@lsegal lsegal closed this in 60ff55b Jul 15, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment