lib/tasks.rb
# == add task to todos
# === Params
#- task_names : add task name list
add task to todos
Params
task_names : add task name list
add task to todos Params task_names : add task name list
def remove_task(tasks, task_name, file_path)
        tasks.delete(task_name)
        contents = tasks.size == 0 ? '' : tasks.join("\n") + "\n"
        File.open(file_path, 'w:UTF-8') { |wf|wf.print contents }
        puts "complete remove todo '#{task_name}' from #{file_path}"
      end
def remove_task ( tasks , task_name , file_path ) tasks . delete ( task_name ) contents = tasks . size == 0 ? '' : tasks . join ( "\n" ) + "\n" File . open ( file_path , 'w:UTF-8' ) { | wf | wf . print contents } puts "complete remove todo '#{task_name}' from #{file_path}" end
add task to todos
 Params
task_names : add task name list
add task to todos Params task_names : add task name list
tasks
<not_specific>
task_name
<not_specific>
file_path
<not_specific>