Is there anything more idiomatic than the following?
foo.class == String
You can do:
foo.instance_of?(String)
And the more general:
foo.kind_of?(String)