Ruby: Hooks