阅读背景:

在Sinatra reqests之间共享Ruby变量

来源:互联网 

I am trying to write a simple quiz game in sinatra and I need to have common objects accessible for all users (lobby state, chat messages etc.). The problem is that Sinatra reloads the code after every request and objects become in initial state. Can anyone give me an advice how to implement it?I am trying to write a simple quiz game in sina




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: