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 add(*task_names)
        task_names.each do |task_name|
          if find_tasks(task_name)
            puts "#{task_name} is already exists."
            next
          end
          File.open(TuduPaths::TUDU_TODOS_FILE_PATH, 'a:UTF-8') do |f|
            f.puts task_name
          end
          puts "complete add todo '#{task_name}' to tudu/todos"
        end
      end
def add ( * task_names ) task_names . each do | task_name | if find_tasks ( task_name ) puts "#{task_name} is already exists." next end File . open ( TuduPaths :: TUDU_TODOS_FILE_PATH , 'a:UTF-8' ) do | f | f . puts task_name end puts "complete add todo '#{task_name}' to tudu/todos" end end
add task to todos
 Params
task_names : add task name list
add task to todos Params task_names : add task name list
task_names
<not_specific>