I have a class in my lib folder with two methods to be used in the app, spec, and a rake command.
lib
The class looks like:
class LibClass