Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
Well I'm not sure if there's anything on it for Ruby, but Touched managed to manipulate it a bit for FireRed: https://www.pokecommunity.com/showthread.php?t=333784.
At the very least, the principles of the hacking may be similar enough to give you an idea.