Class: DebugExtras::DebugPage

Inherits:
Object
  • Object
show all
Defined in:
lib/debug_extras/debug_page.rb

Instance Method Summary collapse

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.expand_path("../templates/debug.html.erb", __FILE__))
end

Instance Method Details

#renderObject



11
12
13
# File 'lib/debug_extras/debug_page.rb', line 11

def render
  ERB.new(@template).result(binding)
end