Class: Snails::App
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Snails::App
- Defined in:
- lib/snails/app.rb
Class Method Summary collapse
Class Method Details
.inherited(base) ⇒ Object
421 422 423 424 |
# File 'lib/snails/app.rb', line 421 def self.inherited(base) Snails.apps << base super end |
.setting(key, default) ⇒ Object
426 427 428 |
# File 'lib/snails/app.rb', line 426 def self.setting(key, default) respond_to?(key) ? public_send(key) : default end |