Class: Barista::Filter
- Inherits:
-
Object
- Object
- Barista::Filter
- Defined in:
- lib/barista/filter.rb
Instance Method Summary collapse
- #_call(env) ⇒ Object
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
#initialize(app) ⇒ Filter
Returns a new instance of Filter.
4 5 6 |
# File 'lib/barista/filter.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
#_call(env) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/barista/filter.rb', line 12 def _call(env) Barista.debug 'Compiling all scripts for barista' if Barista.auto_compile? Barista.compile_all! # Now, actually call the app. @app.call env end |
#call(env) ⇒ Object
8 9 10 |
# File 'lib/barista/filter.rb', line 8 def call(env) dup._call(env) end |