 <p>I would set a class variable — eg. <code>@@my_variable</code> — inside the configure block. The configure block exists for code you want to run at start up, so setting your variable their makes sense. Your Sinatra application is a subclass of <code>Sinatra::Base</code>, so using a class variable in this situation seems appropriate.</p>