Class: Ruboty::Todo::Actions::List
- Defined in:
- lib/ruboty/todo/actions/list.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 |
# File 'lib/ruboty/todo/actions/list.rb', line 5 def call super .reply(send([:command].to_sym)) end |
#cleanup ⇒ Object
14 15 16 17 |
# File 'lib/ruboty/todo/actions/list.rb', line 14 def cleanup todo_list.cleanup list end |
#list ⇒ Object
10 11 12 |
# File 'lib/ruboty/todo/actions/list.rb', line 10 def list todo_list.items.map(&:format).join(?\n) end |
#renum ⇒ Object
19 20 21 22 |
# File 'lib/ruboty/todo/actions/list.rb', line 19 def renum todo_list.renum list end |