Module: Rack::Timeout::ExceptionWithEnv

Included in:
Error, RequestTimeoutException
Defined in:
lib/rack/timeout/core.rb

Overview

shared by the following exceptions, allows them to receive the current env

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



13
14
15
# File 'lib/rack/timeout/core.rb', line 13

def env
  @env
end

Instance Method Details

#initialize(env) ⇒ Object



14
15
16
# File 'lib/rack/timeout/core.rb', line 14

def initialize(env)
  @env = env
end