Sha256: 80c70ee4b824409b3e95ee3ae28d3a131ed4d399d3b56ea790585a9b373623ee
Contents?: true
Size: 520 Bytes
Versions: 96
Compression:
Stored size: 520 Bytes
Contents
# frozen_string_literal: true class ReeMapper::StructOutput < ReeMapper::StrategyOutput contract(None => Any) def initialize; end def initialize_dup(orig) @dto = nil super end contract(None => Object) def build_object dto.allocate end contract(Object, ReeMapper::Field, Any => nil) def assign_value(object, field, value) object[field.name] = value nil end contract(ArrayOf[Symbol] => nil) def prepare_dto(field_names) @dto = Struct.new(*field_names) nil end end
Version data entries
96 entries across 96 versions & 1 rubygems