Ruby Load Path $:

The paths for loading code in Ruby are stored in the global load path $: or $LOAD_PATH variables1

vadim@devbuntu ~/c/s/ruby> ruby -e 'puts $:'
/home/vadim/.asdf/plugins/ruby/rubygems-plugin
/home/vadim/.asdf/installs/ruby/3.0.0/lib/ruby/site_ruby/3.0.0
/home/vadim/.asdf/installs/ruby/3.0.0/lib/ruby/site_ruby/3.0.0/x86_64-linux
/home/vadim/.asdf/installs/ruby/3.0.0/lib/ruby/site_ruby
/home/vadim/.asdf/installs/ruby/3.0.0/lib/ruby/vendor_ruby/3.0.0
/home/vadim/.asdf/installs/ruby/3.0.0/lib/ruby/vendor_ruby/3.0.0/x86_64-linux
/home/vadim/.asdf/installs/ruby/3.0.0/lib/ruby/vendor_ruby
/home/vadim/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0
/home/vadim/.asdf/installs/ruby/3.0.0/lib/ruby/3.0.0/x86_64-linux

can add2 to the load paths same was as in the shell

$: << File.expand_path