我正在使用Sinatra作为我的webapp.我有一些清理代码,我想在我的应用程序关闭时执行.在Sinatra有这个钩子还是我必须使用一个单独的机制?
ruby sinatra
ruby ×1
sinatra ×1