Q. Which method is commonly used to convert an object into its string representation in Ruby?

  • (A) to_str
  • (B) stringify
  • (C) to_s
  • (D) convert_to_string
πŸ’¬ Discuss
βœ… Correct Answer: (C) to_s

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
137
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate