Skip to content

[GH-9046] Expose constants in ClassesCollection - #36

Merged
Eric Silverberg (esilverberg) merged 1 commit into
mainfrom
9046-expose-constants-in-classescollection
Sep 21, 2026
Merged

Eric Silverberg (esilverberg) merged 1 commit into
mainfrom
9046-expose-constants-in-classescollection

Conversation

@esilverberg

Copy link
Copy Markdown
Member

What changed and why

Checklist

  • Tests are added or updated for the changes
  • YARD docs are added or updated for the changes
  • bundle exec rake passes locally (runs both the RSpec and Minitest suites)
[GH-9046] Expose constants in ClassesCollection

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The implementation follows established collection patterns and has appropriate test coverage.

Review effort: Lite
Findings: None

What changed in this PR

Adds ClassesCollection#constants, matching existing collection aggregation APIs and covering it with an RSpec example.

Changes:

  • Aggregates constants from all class declarations.
  • Adds a type and value assertion for the new API.
File Description
lib/​rubyzen/​collections/​classes_collection.rb Implements constant aggregation.
spec/​collections/​classes_collection_spec.rb Tests the new collection method.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@esilverberg
Eric Silverberg (esilverberg) merged commit ab1c615 into main Sep 21, 2026
4 checks passed
@esilverberg
Eric Silverberg (esilverberg) deleted the 9046-expose-constants-in-classescollection branch September 21, 2026 19:36
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.

3 participants