more idiomatic Ruby expressions

no functional change