A

Admin • 831.35K Points
Coach

Q. Which method converts a symbol to a string in Ruby?

  • (A) to_s
  • (B) to_str
  • (C) to_sym
  • (D) to_string
  • Correct Answer - Option(A)
  • Views: 19
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
The to_s method converts a symbol to its string representation.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.