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

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(message)
  add_todo(message, caller, :todo)
end

#todosObject

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(message)
  add_todo(message, caller, :warning)
end