class StarTrack::TaskManager::Terminal

Attributes

io[R]

Public Instance Methods

today_tasks() click to toggle source
# File lib/star_track/task_manager/terminal.rb, line 6
def today_tasks
  puts "Insert what you did today (separated by new lines):".colorize(:yellow)
  puts "Type END when you are done".colorize(:yellow)

  $/ = "END"
  tasks = STDIN.gets.chomp.split("\n")
  $/ = "\n"
  tasks
end