I know you can do
bundle show gem_name
to show the path of some gem.
How do you do that from within the code using the Bundler object?<
It turns out you actually want to use Gem for this, not Bundler.
Gem
Bundler
path = Gem.loaded_specs[NAME_OF_GEM].full_gem_path