Class: Estackprof::Middleware
- Inherits:
-
StackProf::Middleware
- Object
- StackProf::Middleware
- Estackprof::Middleware
- Defined in:
- lib/estackprof/middleware.rb
Instance Method Summary collapse
-
#initialize(app, options = {}) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app, options = {}) ⇒ Middleware
Returns a new instance of Middleware.
7 8 9 10 11 12 13 |
# File 'lib/estackprof/middleware.rb', line 7 def initialize(app, = {}) [:enabled] = true if [:enabled].nil? [:raw] = true if [:raw].nil? [:save_every] ||= 10 super(app, **) end |