Method: Sinatra::Base.configure
- Defined in:
- lib/sinatra/base.rb
.configure(*envs) {|_self| ... } ⇒ Object
Set configuration options for Sinatra and/or the app. Allows scoping of settings for certain environments.
1577 1578 1579 |
# File 'lib/sinatra/base.rb', line 1577 def configure(*envs) yield self if envs.empty? || envs.include?(environment.to_sym) end |