Ruby | String inspect Method
inspect is a String class method in Ruby which is used to return a printable version of the given string, surrounded by quote marks, with special characters escaped.
Returns: Here, str is the given string.
"Ru \n y" "Ar\b\\bcles"
My Personal Notes arrow_drop_up
Please Login to comment...