Welcome to OverrideKernel

OverrideKernel changes Kernel functions from nasty wildebeasts into fluffy, harmless bunnies. Currently, only the exit function is dealt with in such a manner.

Getting Started

  1. Install OverrideKernel at the command prompt if you haven’t yet:

    gem install override_kernel
    
  2. Require the gem in your Gemfile:

    gem 'override_kernel', '~> 0.0.1'
    
  3. Require the gem wherever you need to use it:

    require 'override_kernel'
    

Usage

Simply use the following call to start brushing the exit function off like it’s a harmless pest:

start_override_exit

This line will gladly put it back in your way:

stop_override_exit

You can check the state of the application by checking OverrideKernel.override_exit.

Notes

  • Please note that it is up to you to ‘reset’ the application’s state should it be found to be ‘dead’. The following line will do the deed:

    OverrideKernel::AppState.state = :alive
    

Additional Documentation

rake rdoc:app

License

OverrideKernel is released under the GPLv3 license.