I'd break this into:

```ruby
if variant.is_a? Symbol
  @variant = variant
else
  raise ...