emmanuel/virtus — comment on commit f16144b45504e702ad99f4ca7a71e093ca8791ee
File:  line 0
By dkubb:

@emmanuel do you think `#primitives` needs to have public visibility? Or could we make do with private or protected until it becomes necessary?

It seems to me, we probably want people to be using `#value_coerced?` when possible given that it could be overridden in some Attribute subclasses. For example, I'm pretty sure that the `Virtus::Attribute::Set` and `Virtus::Attribute::Array` types we've been discussing in other tickets will require something a bit different for `#value_coerced?`. In their cases, the idea of primitives isn't enough, we need to make sure every value in the enumerable object matches the list of allowed types.