Open sebbASF opened 2 years ago
It would be useful to be able to get access to the version of the code that has been loaded.
If it has been loaded as a Gem, then the following should work:
Gem.loaded_specs['pdf-reader']&.version
However, there are other ways to require the code. In particular during testing it can be useful to load from a local directory tree.
It would be useful to be able to get access to the version of the code that has been loaded.
If it has been loaded as a Gem, then the following should work:
Gem.loaded_specs['pdf-reader']&.version
However, there are other ways to require the code. In particular during testing it can be useful to load from a local directory tree.