Sha256: 477d8079c9990717b7cfe6c1fde36d68c43c4d1230d656125c598f8d236e1901

Contents?: true

Size: 290 Bytes

Versions: 9

Compression:

Stored size: 290 Bytes

Contents

module Finitio
  class AnyType

    def generate_data(generator, world = nil)
      candidates = [NilClass, String, Integer, Float]
      type = generator.flip_one_out_of(candidates)
      generator.heuristic.call(type, generator, world)
    end

  end # class AnyType
end # module Finitio

Version data entries

9 entries across 9 versions & 1 rubygems

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