Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tweak the readme

  • Loading branch information...
commit cfaa92e3253af876925b735036a8cdc89fc3e44f 1 parent e5f26f5
Darrick Wiebe authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 README.md
View
14 README.md
@@ -17,7 +17,7 @@ source of information at the [Exceptional Ruby](http://exceptionalruby.com/) sit
The best way to use it is to simply add the following line of code to
your project:
- require 'nested_exceptions/global'
+ require 'nested_exceptions/global'
That includes the NestedExceptions module in all of Ruby's base
exception classes (except the Exception root class), magically enabling
@@ -28,11 +28,11 @@ you to debug the trickiest, buggiest libraries.
If you want to try it out without extending Ruby's exception classes,
you can also do the following:
- require 'nested_exceptions'
+ require 'nested_exceptions'
- class MyException < StandardError
- include NestedExceptions
- end
+ class MyException < StandardError
+ include NestedExceptions
+ end
That will only extend your class and leave the rest of the exception
classes untouched.
@@ -43,14 +43,14 @@ Yes. A bit of extra information is added to your backtraces. In addition
to the standard backtrace, you'll get a little bit of nesting
information.
- ruby examples/example.rb original
+ `ruby examples/example.rb original`
examples/example.rb:32:in `rescue in double_bug': oops (RuntimeError)
from examples/example.rb:30:in `double_bug'
from examples/example.rb:42:in `<main>'
- ruby examples/example.rb nested
+ `ruby examples/example.rb nested`
examples/example.rb:30:in `rescue in double_bug': oops (RuntimeError)
from --- cause: ErrorSpec::InternalError: problem
Please sign in to comment.
Something went wrong with that request. Please try again.