minad/unit — comment on commit 0bda2b02dc9ac2a557a3297cb202eb5aabbd5b19
File: spec/support/unit_one.rb line 4
By nertzy:

I purposefully made this not a subclass of `Numeric` so that we could test that we are not relying on anything implemented in `Numeric`. Instead we are relying on any object that responds to `coerce`, which I believe would make `Unit` a better Ruby citizen.

You'll notice that the `apply_through_coercion` method in `Matrix` in the standard library does not care whether the other object is a `Numeric` or not.

I'm not sure which is the preferred approach.