Class: Ginatra::App
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Ginatra::App
- Includes:
- Logger
- Defined in:
- lib/ginatra.rb
Overview
The main application class. Contains all the core application logic and mounted in config.ru
file.
Instance Method Summary collapse
Methods included from Logger
Instance Method Details
#cache(obj) ⇒ Object
39 40 41 |
# File 'lib/ginatra.rb', line 39 def cache(obj) etag obj if settings.production? end |