defcurrent_statuses# this could also be done using inject[]+(under_par??%w{in_contention}:[])+(back_nine??%w{past_the_turn}:[])end
(or use ['in_contention'] instead of %w{in_contention}).
Or with dynamic evaluation
defstatusesstatus_evals={:under_par?=>'in_contention',:back_nine?=>'past_the_turn'}# could obviously be shortend by chainingstatus_evals.select{|k,_v|method(k).call}.valuesend
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
With addition?
(or use
['in_contention']
instead of%w{in_contention}
).Or with dynamic evaluation