Class: Medo::TaskWriter
- Inherits:
-
Object
show all
- Defined in:
- lib/medo/task_writer.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of TaskWriter.
5
6
7
|
# File 'lib/medo/task_writer.rb', line 5
def initialize
@tasks = []
end
|
Instance Method Details
#add_task(*tasks) ⇒ Object
Also known as:
add_tasks
9
10
11
|
# File 'lib/medo/task_writer.rb', line 9
def add_task(*tasks)
@tasks += tasks.flatten
end
|
#tasks_to_write ⇒ Object
14
15
16
|
# File 'lib/medo/task_writer.rb', line 14
def tasks_to_write
@tasks.dup
end
|
#write ⇒ Object
18
19
20
|
# File 'lib/medo/task_writer.rb', line 18
def write
raise NotImplementedError
end
|