Encrypted script will work wherever Ruby is available!
Can I encrypt Ruby function files/scripts? Yes, you can.
Is there a size limit on the type of Ruby scripts that can be encrypted? No, there is not.