Path: | README |
Last Update: | Mon Apr 16 22:39:32 +0200 2007 |
A Ruby file parser that enables/disables source code sections based on conditions. Very handy to implement debugging logs and code that has to be commented (and not just dynamically switched off) when not needed anymore.
gem install -t <TheFileYouDownloaded>.gem
export RUBYLIB=$RUBYLIB:<AbsolutePathWhereYouUnzippedTheFile>/lib
Next time you execute a ruby program from this terminal, you will be able to use "require ‘rcodeleveler’". To make the setting permanent, you can put it in a login script (such as .bashrc).
set RUBYLIB=%RUBYLIB%;<AbsolutePathWhereYouUnzippedTheFile>/lib
Next time you execute a ruby program from this terminal, you will be able to use "require ‘rcodeleveler’". To make the setting permanent, you can modify your environment in ‘Control settings’=>’System’=>’Advanced’=>’Environment variables’.
Documentation is part of the first comments of the file lib/rcodeleveler.rb. It can be read as it is.
However all the source code is commented and formatted to be readable using rdoc.
It can also be viewed 2 ways:
It can also be viewed from the rdoc generated from the sources: type ’./generateRDoc.rb’ from the directory where you unzipped the files, and read ./doc/index.html with a web browser.
Go in the ./examples directory and run
ruby -w SimpleExample.rb
Reading the first comments of file lib/rcodeleveler.rb is very quick and useful to catch all the possibilities.
Go in the ./test directory and run
ruby -w run.rb
Check the AUTHORS file.
You can find out in the LICENSE file.