Mark_Co
asked on
next if and next unless vs if and unless in Ruby
What are the benefits of next if and next unless vs if and unless in Ruby?
Here are two examples I am referring to.
Here are two examples I am referring to.
next if file == '.' || file == '..'
next unless file.end_with?('.rb') || file.end_with?('.erb')
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes that's correct.
ASKER