todo.rb
# Reorders the list after editing (adding/removing) current
# list.
#
Reorders the list after editing (adding/removing) current
list.
Reorders the list after editing ( adding / removing ) current list .
def update_list() 
  id = 1
  for goal in $goals
    goal.id = id
    id += 1
  end
end
def update_list ( ) id = 1 for goal in $goals goal . id = id id += 1 end end
Reorders the list after editing (adding/removing) current
list.
Reorders the list after editing ( adding / removing ) current list .