Class: Rack::Debug
- Inherits:
-
Object
- Object
- Rack::Debug
- Defined in:
- lib/rack/debug.rb
Constant Summary collapse
- VERSION =
'0.1.0'
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, options = {}) ⇒ Debug
constructor
A new instance of Debug.
Constructor Details
#initialize(app, options = {}) ⇒ Debug
Returns a new instance of Debug.
9 10 11 |
# File 'lib/rack/debug.rb', line 9 def initialize(app, ={}) @app = app end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
7 8 9 |
# File 'lib/rack/debug.rb', line 7 def app @app end |
Instance Method Details
#call(env) ⇒ Object
13 14 15 16 17 |
# File 'lib/rack/debug.rb', line 13 def call(env) LineCache::clear_file_cache Debugger.start_unix_socket_remote app.call(env) end |