Ruby snippet updates