/usr/bin/ri
ri is a part of Ruby. ri is a command-line front end for the Ruby API reference.
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ri
ri is a command-line front end for the Ruby API reference. ri provides search and read the API reference for classes and methods.
The binary is a part of Ruby public framework.