Scope ruby gem to a single class

I came across a useful trick of explicitly requiring ruby gems in each classes. In the Gemfile, set the gem require to false. Then you will have to explicitly require that gem in each class.

I am using it to encapsulate interaction with a 3rd party gems through an interface class. All calls made to the 3rd party service through this gem has to be through the interface class.