Class: Lawkeeper::ScrubWare

Inherits:
Object
  • Object
show all
Defined in:
lib/lawkeeper.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ ScrubWare

Returns a new instance of ScrubWare.



113
114
115
# File 'lib/lawkeeper.rb', line 113

def initialize(app)
  @app = app
end

Instance Method Details

#_call(env) ⇒ Object



121
122
123
124
125
126
# File 'lib/lawkeeper.rb', line 121

def _call(env)
  status, headers, body = @app.call(env)
  headers.delete(AUTHORIZED_HEADER)
  headers.delete(SKIPPED_HEADER)
  [status, headers, body]
end

#call(env) ⇒ Object



117
118
119
# File 'lib/lawkeeper.rb', line 117

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