Using a Gem as a library of models

I am developing a set of programs of which a web/rails portion s just
a part. There are several standalone processes that can not be part of
the rails app. The processes will use the same models as the rails
app. I will be creating a Gem to contain the models and some other
common utilities. How can I use the Gem in the rails app?