You are viewing a single comment's thread. Return to all comments →
this is the exact answer:
def scoring(array)
array.each do |user|
user.update_score
end
Seems like cookies are disabled on this browser, please enable them to open this website
Ruby Control Structures - Each
You are viewing a single comment's thread. Return to all comments →
this is the exact answer:
def scoring(array)
array.each do |user|
user.update_score
end
iterate through each of the element in array using each and call update_score on it
end