write ruby