ruby: generate wrapper structures.