Just a quick note that Virtus Show archive.org snapshot can coerce (auto-cast) structured values like collections or maps:
class Klass
include Virtus.model
attribute :dimensions, Hash[Symbol => Float]
attribute :numbers, Array[Integer]
end
Check out the Virtus README Show archive.org snapshot , it's full of nice things like this!
Posted by Henning Koch to makandra dev (2013-12-19 08:59)