Fix compare

Numeric is parent so `1.class == Numeric`. Option is to rewrite it to 
```
[@value, second].all? { |e| e.is_a?(Numeric) }
```