A

Admin • 831.35K Points
Coach

Q. How do you check the class of an object in Ruby?

  • (A) object.class
  • (B) class(object)
  • (C) type(object)
  • (D) object.type
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
Calling .class on an object returns its class.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.