Sha256: 08ac75eb0ea96ff3a77bef7ebf5db3d431189a8fcbacc7c55eef24bbf1f51360

Contents?: true

Size: 312 Bytes

Versions: 6

Compression:

Stored size: 312 Bytes

Contents

require "rack/logs/version"

module Rack
  module Logs
    module_function

    autoload 'Viewer', 'rack/logs/viewer'
    autoload 'Config', 'rack/logs/config'

    def configure
      Rack::Logs::Viewer.new Config.new.tap { |c| yield c }
    end

    def call env
      configure {}.call env
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rack-logs-0.0.6 lib/rack/logs.rb
rack-logs-0.0.5 lib/rack/logs.rb
rack-logs-0.0.4 lib/rack/logs.rb
rack-logs-0.0.3 lib/rack/logs.rb
rack-logs-0.0.2 lib/rack/logs.rb
rack-logs-0.0.1 lib/rack/logs.rb