Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

YARD doesn't nest classes properly #552

Closed
dominikh opened this Issue · 0 comments

2 participants

@dominikh

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.