Module: Sqrbl::HasTodos
- Included in:
- Conversion, Group, Step, StepPair
- Defined in:
- lib/sqrbl/mixins/has_todos.rb
Defined Under Namespace
Classes: Todo
Instance Method Summary collapse
-
#todo(message) ⇒ Object
Create a new Todo item (of type
:todo
) and add it totodos
. -
#todos ⇒ Object
Return the list of Todo items.
-
#warning(message) ⇒ Object
Create a new Todo item (of type
:warning
) and add it totodos
.
Instance Method Details
#todo(message) ⇒ Object
Create a new Todo item (of type :todo
) and add it to todos
.
49 50 51 |
# File 'lib/sqrbl/mixins/has_todos.rb', line 49 def todo() add_todo(, caller, :todo) end |
#todos ⇒ Object
Return the list of Todo items.
44 45 46 |
# File 'lib/sqrbl/mixins/has_todos.rb', line 44 def todos @todos ||= [] end |
#warning(message) ⇒ Object
Create a new Todo item (of type :warning
) and add it to todos
.
54 55 56 |
# File 'lib/sqrbl/mixins/has_todos.rb', line 54 def warning() add_todo(, caller, :warning) end |