Method: CTypes::Union::Builder#result

Defined in:
lib/ctypes/union/builder.rb

#resultObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



78
79
80
81
82
83
84
# File 'lib/ctypes/union/builder.rb', line 78

def result
  dry_type = Dry::Types["coercible.hash"]
    .schema(@schema)
    .strict
    .default(@default.freeze)
  [@name, @fields.freeze, dry_type, @size, @fixed_size, @endian]
end