Class: Ginatra::App

Inherits:
Sinatra::Base
  • Object
show all
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

#logger, 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