EmbeddedValue handles virtus-like objects, OpenStruct and Struct
@api private
# File lib/virtus/attribute/embedded_value.rb, line 54 def self.build_coercer(type, _options) primitive = type.primitive if primitive < Virtus || primitive < Model::Constructor || primitive <= OpenStruct FromOpenStruct.new(type) elsif primitive < Struct FromStruct.new(type) end end
Generated with the Darkfish Rdoc Generator 2.