Sha256: fa7eef2d7ebb456c4e4fc4beac029080ab72e50bb4cb5167035a7e834d9c9dab

Contents?: true

Size: 305 Bytes

Versions: 5

Compression:

Stored size: 305 Bytes

Contents

module Barista
  class Filter

    def initialize(app)
      @app = app
    end

    def call(env)
      dup._call(env)
    end

    def _call(env)
      Barista.debug 'Compiling all scripts for barista'
      Barista.compile_all!
      # Now, actually call the app.
      @app.call env
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
barista-1.1.0 lib/barista/filter.rb
barista-1.1.0.pre1 lib/barista/filter.rb
barista-1.0.0 lib/barista/filter.rb
barista-0.7.0.pre3 lib/barista/filter.rb
barista-0.7.0.pre2 lib/barista/filter.rb