`uuid.is_a?(String)` or `String === uuid` are more idiomatic ways of testing that an object is an instance of a class. In this case `uuid.respond_to?(:value)` might have been more appropriate (it's the reverse, though).