While setting up the meshery-docs locally the first command ran well but when i went for ruby part it showing like this!

Hi @abhijeetgauravm,
if your WSL use Ubuntu as distribution, you can refer to this guide GitHub - rvm/ubuntu_rvm: Ubuntu package for RVM took from the official site RVM: Ruby Version Manager - Installing RVM

Maybe this part could help you, however you should have a look at the complete procedure:

Now, in order to always load rvm, change the Gnome Terminal to always perform a login. […]
Or instead, if you cannot force terminal to perform a login, or you’re facing Command 'rvm' not found, you can run the following command to append it to your .bashrc:

echo 'source "/etc/profile.d/rvm.sh"' >> ~/.bashrc