Sha256: 1483538ac8852083fba554411b194d3cf95ea1704c18329f8f1f9844b4426063
Contents?: true
Size: 842 Bytes
Versions: 4
Compression:
Stored size: 842 Bytes
Contents
# typed: strict module DataModel module Fixtures::Symbol extend self include Fixtures extend T::Sig sig { returns(Example) } def simple Example.new( [:symbol], variants: { valid: :valid, coerce: "valid", missing: nil, other_type: 22 }, ) end sig { returns(Example) } def optional Example.new( [:symbol, { optional: true }], variants: { missing: nil, present: :valid, number: 22 }, ) end sig { returns(Example) } def inclusion Example.new( [:symbol, { included: [:valid] }], variants: { valid: :valid, outside: :outside }, ) end sig { returns(Example) } def exclusion Example.new( [:symbol, { excluded: [:invalid] }], variants: { valid: :valid, inside: :invalid }, ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems