Sha256: 11e9297115dcbdb8a8742596ee54942e5c16547e4601e329accc8553befe533d
Contents?: true
Size: 434 Bytes
Versions: 4
Compression:
Stored size: 434 Bytes
Contents
require_relative 'setup' ATTR_NAMES = [:attr0, :attr1, :attr2, :attr3, :attr4, :attr5, :attr6, :attr7, :attr8, :attr9] class Integers < Dry::Struct ATTR_NAMES.each do |name| attribute? name, 'coercible.integer' end end integers = {attr0: 0, attr1: 1, attr2: 2, attr3: 3, attr4: 4, attr5: 5, attr6: 6, attr7: 7, attr8: 8, attr9: 9} require 'pry-byebug' profile do 1_000_000.times do Integers.new(integers) end end
Version data entries
4 entries across 4 versions & 1 rubygems