Sha256: d0e48bc2593aa377c8c3044ba50e38ffae92e15d47ce4e836be1a7e48a6acf89
Contents?: true
Size: 728 Bytes
Versions: 4
Compression:
Stored size: 728 Bytes
Contents
# typed: strict module DataModel module Fixtures::Float include Fixtures extend T::Sig extend self sig { returns(Example) } def simple Example.new( [:float], variants: { valid: 5.0, missing: nil, string: ["5", 5.0] }, ) end sig { returns(Example) } def optional Example.new( [:float, { optional: true }], variants: { missing: nil }, ) end sig { returns(Example) } def min Example.new( [:float, { min: 5 }], variants: { bigger: 6.0, smaller: 4.0 }, ) end sig { returns(Example) } def max Example.new( [:float, { max: 5.0 }], variants: { bigger: 6.0, smaller: 4.0 }, ) end end end
Version data entries
4 entries across 4 versions & 1 rubygems