Ruby Motion Hook