A swap file on a RAM disk seems... not useful.
There might also have been some way to convince the kernel a piece of RAM was a block device. The "ramdisk.c" driver in Linux was simpler before.
After that, it was a matter of creating an init script which formatted the block device as a swap device, then running swapon.