Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support nested structs of the form A::B = Struct.new(...) #1599

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marshall-lee
Copy link

@marshall-lee marshall-lee commented Jan 16, 2025

Description

On my codebase, yard fails when it happens to meet Struct.new assigned to a nested constant e.g. this code:

A::B = Struct.new(:a, :b, :c)

fails with the following error:

[warn]: in YARD::Handlers::Ruby::ConstantHandler: Undocumentable Struct assignment to A::B

Completed Tasks

  • I have read the Contributing Guide.
  • The pull request is complete (implemented / written).
  • Git commits have been cleaned up (squash WIP / revert commits).
  • I wrote tests and ran bundle exec rake locally (if code is attached to PR).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant