Move Ruby code to TLD