update Ruby syntax