OhNo
Do you ever feel like you don't even know where your errors are coming from? Try OhNo! With OhNo, you'll know exactly how those bugs got there - you put them there!
Have trouble with recursion? Just call stack_overflow method and call it a day!
Not so good with math? Try out divide_by_zero!
Need to buy some time? An infinite_loop is the one for you!
Try these and much, much more!
Installation
Add this line to your application's Gemfile:
gem 'ohno'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ohno
Usage
Just slip any of these methods into your code and enjoy!
OhNo::infinite_loop
OhNo::stack_overflow
OhNo::divide_by_zero
OhNo::index_error
OhNo::type_error
OhNo::no_method_error
OhNo::argument_error
OhNo::load_error
OhNo::syntax_error
OhNo::i_wouldnt_if_i_were_you
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/DouglasTGordon/OhNo.