handle ruby inline block in prepush and postpop