RCodeLeveler is a Ruby preprocessor (used when requiring files) that interprets some comments in source files to enable or disable parts of the source code.
RCodeLeveler's goal is to activate parts of the source code without any performance issue. For example, logging some information only when the program is run with a given option.
The simple implementation would be to dynamically test a condition enabling some parts of the code, but sometimes even a simple condition testing is harmful enough to performances to want to comment/uncomment the function call when needed. RCodeLeveler does it for you.
NOTE: RCodeLeveler is licensed and distributed under the terms of the BSD License.