Sha256: ae2b3eb3d3a313b72f72d811aa996e59b2e387938faf357bb732a852fc61a685

Contents?: true

Size: 278 Bytes

Versions: 10

Compression:

Stored size: 278 Bytes

Contents

require 'logster/middleware/viewer'

class Logster::Web
  class FourOhFour
    def call(env)
      [404, {}, ["not found"]]
    end
  end

  def self.call(env)
    @middleware ||= Logster::Middleware::Viewer.new(FourOhFour.new)
    @middleware.call(env)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
logster-2.1.2 lib/logster/web.rb
logster-2.1.0 lib/logster/web.rb
logster-2.0.1 lib/logster/web.rb
logster-2.0.0.pre lib/logster/web.rb
logster-1.4.0.pre lib/logster/web.rb
logster-1.3.4 lib/logster/web.rb
logster-1.3.3 lib/logster/web.rb
logster-1.3.2 lib/logster/web.rb
logster-1.3.0 lib/logster/web.rb
logster-1.3.pre lib/logster/web.rb