How to Determine an Object’s Type in Ruby | CodeTrail