安裝

你可以將 Sinatra 安裝為全域性 gem:

gem install sinatra

或將其新增到專案的 Gemfile 中

# in Gemfile:
gem 'sinatra'

並執行 bundle install。