Class: Rack::Bug::RequestVariablesPanel

Inherits:
Panel
  • Object
show all
Defined in:
lib/rack/bug/panels/request_variables_panel.rb

Instance Attribute Summary

Attributes inherited from Panel

#request

Instance Method Summary collapse

Methods inherited from Panel

#after, #call, #has_content?, #initialize, #panel_app, #render

Methods included from Render

#compile, #compile!, #compiled_source, #method_name, #method_name_without_locals, #render_template, #signed_params

Constructor Details

This class inherits a constructor from Rack::Bug::Panel

Instance Method Details

#before(env) ⇒ Object



10
11
12
# File 'lib/rack/bug/panels/request_variables_panel.rb', line 10

def before(env)
  @env = env
end

#contentObject



18
19
20
# File 'lib/rack/bug/panels/request_variables_panel.rb', line 18

def content
  render_template "panels/request_variables", :request => @request, :env => @env
end

#headingObject



14
15
16
# File 'lib/rack/bug/panels/request_variables_panel.rb', line 14

def heading
  "Rack Env"
end

#nameObject



6
7
8
# File 'lib/rack/bug/panels/request_variables_panel.rb', line 6

def name
  "request_variables"
end