The new Attributes API is interesting. <a href="https:&#x2F;&#x2F;github.com&#x2F;rails&#x2F;rails&#x2F;blob&#x2F;8c752c7ac739d5a86d4136ab1e9d0142c4041e58&#x2F;activerecord&#x2F;lib&#x2F;active_record&#x2F;attributes.rb" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;rails&#x2F;rails&#x2F;blob&#x2F;8c752c7ac739d5a86d4136ab...</a><p>Basically it&#x27;s a type system for models with the ability of defining new types. I wonder if it can be used also for plain Ruby objects but given the existence of tableless ActiveRecord gems, why not?
<a href="https:&#x2F;&#x2F;github.com&#x2F;softace&#x2F;activerecord-tableless&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;softace&#x2F;activerecord-tableless&#x2F;</a>