ruby: get struct pointer in initialize.