str.inspect â string
Instance Public methods
Returns a printable version of str, surrounded by quote marks, with special characters escaped.
1 2 3 | str = "hello" str[ 3 ] = "\b" str.inspect #=> "\"hel\\bo\"" |
Returns a printable version of str, surrounded by quote marks, with special characters escaped.
1 2 3 | str = "hello" str[ 3 ] = "\b" str.inspect #=> "\"hel\\bo\"" |
Designed by : w10schools
service@w10schools.com
Please login to continue.