Is there any equivalent of `to_s` in Ruby? -
i know 123.to_s
gives "123"
. looking other way have same output 123
.
is possible?
kernel#string
you.
string(123) #=> "123"
i know 123.to_s
gives "123"
. looking other way have same output 123
.
is possible?
kernel#string
you.
string(123) #=> "123"
Comments
Post a Comment