Method: Deas::ShowExceptions::Body#initialize
- Defined in:
- lib/deas/show_exceptions.rb
#initialize(e) ⇒ Body
Returns a new instance of Body.
39 40 41 42 43 |
# File 'lib/deas/show_exceptions.rb', line 39 def initialize(e) @content = "#{e.class}: #{e.}\n#{(e.backtrace || []).join("\n")}" @size = Rack::Utils.bytesize(@content) @mime_type = "text/plain" end |