class TodoTxtViewer::TaskLine
Constants
- ALLOWED_ACTIONS
Attributes
task[R]
Public Class Methods
new(task)
click to toggle source
# File lib/todo_txt_viewer/task_line.rb, line 9 def initialize task @task = task end
Public Instance Methods
task_action(action)
click to toggle source
# File lib/todo_txt_viewer/task_line.rb, line 17 def task_action action raise "illegal action #{action}" unless ALLOWED_ACTIONS.include? action task.send action end
to_s()
click to toggle source
# File lib/todo_txt_viewer/task_line.rb, line 13 def to_s task.to_s end