Many developers use #TODO comments, many IDEs specially highlights them, there is a Rake task to extract TODOs from source. This rather simple program collects encountered TODOs during software execution and reminds of them after program termination. TODOs are embedded into source in any place where 'puts' can be used (e.g. inside a method, before a method or class definition) as call to todo(string) function. After program execution, number of encountered TODOs is printed, as well as first and last TODOs. This can be convenient after developing the skeleton of a program. File name and line number are automatically added to TODO-message, so that IDE like NetBeans can jump to the line from the output window.
File: welcome_todoexe.rb
require 'todoexe' todo 'benchmark Set vs Array for small number of items' class SomeClass @data = Array.new todo 'implement edit()' def edit end def insert # # some implementation here # end todo 'add bulk insert functionality' end