Skip to content

Update File::Constants and File::Stat#2942

Open
sampersand wants to merge 4 commits intoruby:masterfrom
sampersand:swesterman/2026-04-28/update-File-constants-and-stat
Open

Update File::Constants and File::Stat#2942
sampersand wants to merge 4 commits intoruby:masterfrom
sampersand:swesterman/2026-04-28/update-File-constants-and-stat

Conversation

@sampersand
Copy link
Copy Markdown
Contributor

@sampersand sampersand commented Apr 29, 2026

This PR cleans up miscellaneous File RBS definitions: File's top-level constants, File::Constants and File::Stat (which were mostly correct, barirng a few nilable values). This is in preparation for another subsequent PR which will update the core File class.

Also note that this PR splits File::Constants and File::Stat into their own core/file_{constants,stat}.rbs files. If that's not desired, I can stick them back in core/file.rbs, but I think it's cleaner to have them as separate files. (And, we already have separate test files for them anyways, so it makes sense.)

@sampersand sampersand changed the title swesterman/2026 04 28/update File constants and stat Update File::Constants and File::Stat Apr 29, 2026
@sampersand sampersand force-pushed the swesterman/2026-04-28/update-File-constants-and-stat branch from 8dee6f9 to d532855 Compare April 29, 2026 01:35
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