What is the best way nowadays to make #emacs use a Ruby installation from #rbenv ?

I have some configuration in my shell files but #emacs is not using it and it cannot launch `ruby-lsp` from it

GitHub - purcell/envrc: Emacs support for direnv which operates buffer-locally

Emacs support for direnv which operates buffer-locally - purcell/envrc

GitHub