Sha256: a012fe1e5516875300e3e43e4c8958f63af7bd4dc5e2a06046adfa41f247794b

Contents?: true

Size: 401 Bytes

Versions: 2

Compression:

Stored size: 401 Bytes

Contents

motion_require 'object'

module Virtus
  class Attribute

    # Class
    #
    # @example
    #   class Entity
    #     include Virtus
    #
    #     attribute :model, Class
    #   end
    #
    #   post = Entity.new(:model => Model)
    #
    class Class < Object
      primitive       ::Class
      coercion_method :to_constant

    end # class Class
  end # class Attribute
end # module Virtus

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
motion_virtus-1.0.0.beta0.1 lib/project/attribute/class.rb
motion_virtus-1.0.0.beta0 lib/project/attribute/class.rb