Skip to content

Conversation

@marshall-lee
Copy link
Contributor

@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).

@lsegal lsegal merged commit 4f331e3 into lsegal:main May 9, 2025
15 checks passed
@lsegal
Copy link
Owner

lsegal commented May 9, 2025

Thanks for getting this fixed!

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.

2 participants