Sha256: 8fc88e600033c5fbc7bbd66f6f0d29e2d3cbef36941561b12bbbf4cd36763d3a

Contents?: true

Size: 375 Bytes

Versions: 13

Compression:

Stored size: 375 Bytes

Contents

module Virtus
  class Attribute

    # Class
    #
    # @example
    #   class Entity
    #     include Virtus
    #
    #     attribute :type, 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

13 entries across 13 versions & 2 rubygems

Version Path
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/virtus-0.5.2/lib/virtus/attribute/class.rb
virtus-0.5.2 lib/virtus/attribute/class.rb
virtus-0.5.1 lib/virtus/attribute/class.rb
virtus-0.5.0 lib/virtus/attribute/class.rb
virtus-0.4.2 lib/virtus/attribute/class.rb
virtus-0.4.1 lib/virtus/attribute/class.rb
virtus-0.4.0 lib/virtus/attribute/class.rb
virtus-0.3.0 lib/virtus/attribute/class.rb
virtus-0.2.0 lib/virtus/attribute/class.rb
virtus-0.1.0 lib/virtus/attribute/class.rb
virtus-0.0.10 lib/virtus/attribute/class.rb
virtus-0.0.9 lib/virtus/attribute/class.rb
virtus-0.0.8 lib/virtus/attribute/class.rb