Module: Kernel
- Defined in:
- lib/todonotes.rb
Overview
Define todo-commands to global usage.
Instance Method Summary collapse
-
#fixme(comment = 'FixMe', &block) ⇒ Object
Add a fixme-command.
-
#todo(comment = 'ToDo', &block) ⇒ Object
(also: #to)
Usage 1 (only message): todo “my todo-message”“.
Instance Method Details
#fixme(comment = 'FixMe', &block) ⇒ Object
Add a fixme-command.
Can be used to mark available code.
198 199 200 |
# File 'lib/todonotes.rb', line 198 def fixme( comment = 'FixMe', &block) Todonotes.instance.todo(comment, :FixMe, &block) end |
#todo(comment = 'ToDo', &block) ⇒ Object Also known as: to
Usage 1 (only message):
todo "my todo-message""
Usage 2 (only temporary result):
todo { "temporary result" }
todo do
"temporary result"
end
Usage 3(message and temporary result):
todo ('message') { "temporary result" }
todo ('message') do
"temporary result"
end
183 184 185 |
# File 'lib/todonotes.rb', line 183 def todo( comment = 'ToDo', &block) Todonotes.instance.todo(comment, &block) end |