0

Control Structure - Unless

Hello Rubiest out there i have a question about my code: unless user.is_admin? user.update_score end Problem Statement: User has two public methods, is_admin? and update_score. Your task in this challenge is to use the control structure unless and update all elements of the array who are not admins.

1st Apr 2018, 5:54 AM
Anthony Perez
2 Respostas
+ 1
Damn i forgot to mention the array thank you.
1st Apr 2018, 5:42 PM
Anthony Perez
0
Anthony Perez It seems your question appears to be an assignment. Please show us your attempt and use the 8 rules to get help from the community. https://www.sololearn.com/Blog/38/8-simple-rules-to-get-help-from-the-community *can be a code coach solution which is meant for you to do to help you establish your skills abilities and where you need to learn... not the community *one issued by a school or other institution *one issued or created by another platform *one that appears to be in the form of a challenge that was created by you or somewhere else. Your question will be reviewed by a team of moderators and will most likely be marked for deletion. https://www.sololearn.com/Discuss/1316935/?ref=app
6th Feb 2021, 10:40 PM
BroFar
BroFar - avatar