Call module constructors in generated Ruby code