Check out example codes for "integer to string ruby". It will help you in understanding the concepts better.

Code Example 1

my_int = 69
my_int_to_string = my_int.to_s

puts my_int.class # Integer
puts my_int_to_string.class # String

Code Example 2

to_s

Learn ReactJs, React Native from akashmittal.com