How to access Ruby strings elements in an application.

bookmark

 

You can access Ruby string elements in different parts with the help of square brackets []. Within square brackets write the index or string.