pdf-reader
pdf-reader copied to clipboard
Provide access to code version
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.