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

Add handling for Data classes #259

Merged
merged 5 commits into from
Sep 14, 2024
Merged

Add handling for Data classes #259

merged 5 commits into from
Sep 14, 2024

Conversation

jas14
Copy link
Collaborator

@jas14 jas14 commented Sep 14, 2024

Closes #252.

Ruby 3.2.0 introduced the Data construct, which looks a lot like an object to this project, but uses #members instead of instance variables.

The solution is to introduce an object inspection tree builder and operation tree builder that are essentially the same as the corresponding builders for default objects, but know to read the members of the Data class instead of instance variables.

@jas14 jas14 merged commit 2d06e39 into main Sep 14, 2024
31 checks passed
@jas14 jas14 deleted the data-class-handling branch September 14, 2024 06:03
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.

Output for data class expectations is worse than stock RSpec
1 participant