Some detailed information on how irb works and configuration options possible:
https://docs.ruby-lang.org/en/3.0/IRB.html

Predefined global variables
https://docs.ruby-lang.org/en/3.0/globals_rdoc.html