Skip to content

Instantly share code, notes, and snippets.

@steve9001
Created August 13, 2013 17:17
Show Gist options
  • Select an option

  • Save steve9001/6223398 to your computer and use it in GitHub Desktop.

Select an option

Save steve9001/6223398 to your computer and use it in GitHub Desktop.

Revisions

  1. steve9001 renamed this gist Aug 13, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. steve9001 created this gist Aug 13, 2013.
    7 changes: 7 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    class Exception
    def pretty
    %|\n#{self.class} (#{self.message}):\n #{backtrace.join("\n ")}\ n|
    rescue Exception => e
    "error in Exception#pretty: #{e}"
    end
    end