condense ruby var assigns