idiomatic ruby methods