Sha256: eedf772ab1668c3a2f37e6d99a3c8f3a956b6df85d6cfdbd3f36d987a918a0fd

Contents?: true

Size: 223 Bytes

Versions: 9

Compression:

Stored size: 223 Bytes

Contents

module Finitio
  class UnionType

    def generate_data(generator, world = nil)
      picked = generator.flip_one_out_of(candidates)
      generator.call(picked, world)
    end

  end # class UnionType
end # module Finitio

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
finitio-0.12.0 lib/finitio/generation/union_type.rb
finitio-0.11.4 lib/finitio/generation/union_type.rb
finitio-0.11.3 lib/finitio/generation/union_type.rb
finitio-0.11.2 lib/finitio/generation/union_type.rb
finitio-0.11.1 lib/finitio/generation/union_type.rb
finitio-0.10.0 lib/finitio/generation/union_type.rb
finitio-0.9.1 lib/finitio/generation/union_type.rb
finitio-0.9.0 lib/finitio/generation/union_type.rb
finitio-0.8.0 lib/finitio/generation/union_type.rb