Sha256: 41e701e8502a32f0277171c4de6da3c08e0df224f170d2c447f3dcc3caffc1ef

Contents?: true

Size: 330 Bytes

Versions: 6

Compression:

Stored size: 330 Bytes

Contents

require "erb"

module DebugExtras
  class DebugPage
    def initialize(exception, request_path)
      @exception = exception
      @request_path = request_path
      @template = File.read(File.expand_path("../templates/debug.html.erb", __FILE__))
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
debug-extras-0.3.6 lib/debug_extras/debug_page.rb
debug-extras-0.3.5 lib/debug_extras/debug_page.rb
debug-extras-0.3.4 lib/debug_extras/debug_page.rb
debug-extras-0.3.3 lib/debug_extras/debug_page.rb
debug-extras-0.3.2 lib/debug_extras/debug_page.rb
debug-extras-0.3.0 lib/debug_extras/debug_page.rb