Created
January 23, 2021 21:18
-
-
Save jjb/fef79c4bd68e6e6d9f84e561ea689604 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ObjectSpace.each_object(File) do |f| | |
unless f.closed? | |
printf "%s: %d\n", f.path, f.fileno | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment