Sha256: f765a9f44761a62b5aec0a7685b5d1ae9faa632d27a60560a4ac0260d9a87585

Contents?: true

Size: 380 Bytes

Versions: 5

Compression:

Stored size: 380 Bytes

Contents

module Virtus
  class Attribute

    # Array
    #
    # @example
    #   class Post
    #     include Virtus
    #
    #     attribute :tags, Array
    #   end
    #
    #   post = Post.new(:tags => %w(red green blue))
    #
    class Array < Object
      primitive       ::Array
      coercion_method :to_array

    end # class Array
  end # class Attribute
end # module Virtus

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
virtus-0.0.10 lib/virtus/attribute/array.rb
virtus-0.0.9 lib/virtus/attribute/array.rb
virtus-0.0.8 lib/virtus/attribute/array.rb
virtus-0.0.7 lib/virtus/attribute/array.rb
virtus-0.0.6 lib/virtus/attribute/array.rb