Module: BigBand::WebInspector
- Defined in:
- lib/big_band/web_inspector.rb
Overview
The WebInspector allowes you to inspect a running Sinatra app. Just browse localhost:4567/_inspect_
Per default this will only be activated in development mode.
Defined Under Namespace
Classes: Middleware
Instance Attribute Summary collapse
-
#middleware ⇒ Object
readonly
Returns the value of attribute middleware.
Class Method Summary collapse
Instance Attribute Details
#middleware ⇒ Object (readonly)
Returns the value of attribute middleware.
13 14 15 |
# File 'lib/big_band/web_inspector.rb', line 13 def middleware @middleware end |
Class Method Details
.registered(klass) ⇒ Object
69 70 71 72 73 |
# File 'lib/big_band/web_inspector.rb', line 69 def self.registered(klass) klass.register BasicExtensions klass.register AdvancedRoutes klass.use(Middleware) { |m| m.sinatra_app = klass } end |