Sha256: 8984b0784db85a24cbb51298f4460427f1031c1f2cefc86ce96f097ec0163927

Contents?: true

Size: 512 Bytes

Versions: 4

Compression:

Stored size: 512 Bytes

Contents

# typed: strict

module DataModel
	module Fixtures::Boolean
		extend T::Sig
		extend self
		include Fixtures

		sig { returns(Example) }
		def simple
			Example.new(
				[:boolean],
				variants: {
					true: true,
					false: false,
					string: ["true", true],
					missing: nil
				},
			)
		end

		sig { returns(Example) }
		def optional
			Example.new(
				[:boolean, { optional: true }],
				variants: {
					true: true,
					false: false,
					string: "true",
					missing: nil
				},
			)
		end
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
data_model-0.4.0 lib/data_model/fixtures/boolean.rb
data_model-0.3.0 lib/data_model/fixtures/boolean.rb
data_model-0.2.0 lib/data_model/fixtures/boolean.rb
data_model-0.1.0 lib/data_model/fixtures/boolean.rb