Class: DebugExtras::DebugPage
- Inherits:
-
Object
- Object
- DebugExtras::DebugPage
- Defined in:
- lib/debug_extras/debug_page.rb
Instance Method Summary collapse
-
#initialize(exception, request_path) ⇒ DebugPage
constructor
A new instance of DebugPage.
- #render ⇒ Object
Constructor Details
#initialize(exception, request_path) ⇒ DebugPage
Returns a new instance of DebugPage.
5 6 7 8 9 |
# File 'lib/debug_extras/debug_page.rb', line 5 def initialize(exception, request_path) @exception = exception @request_path = request_path @template = File.read(File.("../templates/debug.html.erb", __FILE__)) end |
Instance Method Details
#render ⇒ Object
11 12 13 |
# File 'lib/debug_extras/debug_page.rb', line 11 def render ERB.new(@template).result(binding) end |