How to get a list of all of one type of Virtus attribute?
<p>How to get a list of all of one type?<br>
Like for example, a list of all of the String attributes?
Is there an easy Virtus solution or do I have to roll my own?</p>

<pre><code>def my_model
  include Virtus.model
  attribute :a, Integer
  attribute :b, Integer
  attribute :c, String
  attribute :d, String
  attribute :w, Float
  attribute :j, Float
end
</code></pre>

<p>I would like to essentially do <code>my_model.something = [:c, :d]</code></p>

<p>OR is there any other way to get all of the String attributes in list form?</p>

<p>My ultimate goal is to be able to splat the attributes into various validations based on type.</p>