Add property method to generator