Ruby guidelines fixes