Tyler Breland: Dinodex solution r1

revision from Dan Schepers code review
Same, don't bother with the class check. In general, idiomatic ruby tries not to do class checks if it's avoidable.