Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (21 sloc) 0.462 kb
module Virtus
class Attribute
# Array
#
# @example
# class Post
# include Virtus
#
# attribute :tags, Array
# end
#
# post = Post.new(:tags => %w(red green blue))
#
class Array < Collection
primitive ::Array
coercion_method :to_array
default primitive.new
include Collection::MemberCoercion
end # class Array
end # class Attribute
end # module Virtus
Jump to Line
Something went wrong with that request. Please try again.