Class: Rack::Debug
- Inherits:
-
Object
- Object
- Rack::Debug
- Defined in:
- lib/rack/debug.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
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.
7 8 9 10 11 12 |
# File 'lib/rack/debug.rb', line 7 def initialize(app, ={}) @app = app @options = extend_ruby_debug! end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
5 6 7 |
# File 'lib/rack/debug.rb', line 5 def app @app end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/rack/debug.rb', line 5 def @options end |
Instance Method Details
#call(env) ⇒ Object
14 15 16 17 18 |
# File 'lib/rack/debug.rb', line 14 def call(env) LineCache::clear_file_cache Debugger.start_unix_socket_remote(socket_path) app.call(env) end |