Ruby trick