Sha256: cd0486515c44357eb8f96d6883cd549c206d2a568cee5fe041401d90d1cf3303
Contents?: true
Size: 417 Bytes
Versions: 1
Compression:
Stored size: 417 Bytes
Contents
module Virtus class Attribute class EmbeddedValue < Object # EmbeddedValue attribute handling OpenStruct primitive or Virtus object # class FromOpenStruct < EmbeddedValue # @api private def coerce(attributes) super or @primitive.new(attributes) end end # class FromOpenStruct end # class EmbeddedValue end # class Attribute end # module Virtus
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
virtus-0.5.0 | lib/virtus/attribute/embedded_value/from_open_struct.rb |