Sha256: fa2e16ae1142f9a293278a71d13344f8e3470df269f5555508dbef03ef6e55cd

Contents?: true

Size: 282 Bytes

Versions: 7

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true

require 'benchmark/ips'
require 'hotch'
ENV['HOTCH_VIEWER'] ||= 'open'

require 'dry/types'

PersonSchema = Dry::Types['hash'].schema(
  name: 'string',
  age: 'integer',
  email: 'string'
).lax

def profile(&block)
  Hotch(filter: 'Dry', &block)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dry-types-1.2.2 benchmarks/setup.rb
dry-types-1.2.1 benchmarks/setup.rb
dry-types-1.2.0 benchmarks/setup.rb
dry-types-1.1.1 benchmarks/setup.rb
dry-types-1.1.0 benchmarks/setup.rb
dry-types-1.0.1 benchmarks/setup.rb
dry-types-1.0.0 benchmarks/setup.rb