solnic/virtus — Issue #65: Type conversions
Author: schmurfy
Created: 2012-02-13 10:21:41+00:00
State: open

I was just playing around with the gem and stumbled on this:

```ruby

require 'virtus'

class Book
include Virtus

attribute :page_numbers, Array[Integer]
end

book = Book.new(:page_numbers => %w[dummy 2 3])
book.page_numbers # => ["dummy", 2, 3]

```

I would expect [0, 2, 3] or maybe [nil, 2, 3] or even an error.
Is it the wanted behavior ?