Method: Sinatra::Reloader::BaseMethods#run!

Defined in:
lib/sinatra/reloader.rb

#run!(*args) ⇒ Object

Protects Sinatra::Base.run! from being called more than once.

[View source]

274
275
276
277
278
279
280
# File 'lib/sinatra/reloader.rb', line 274

def run!(*args)
  if settings.reloader?
    super unless running?
  else
    super
  end
end