Sha256: ea94f3e84cbeadef2407a5011f903d099fe14f493819b87802f73b147a555625

Contents?: true

Size: 203 Bytes

Versions: 9

Compression:

Stored size: 203 Bytes

Contents

module VGen
  class WhateverGen
    def initialize(
          gens: [ proc {Random.new.rand} ]
        )
      @gens = gens
    end

    def call()
      @gens.sample.call
    end
  end
end

Version data entries

9 entries across 7 versions & 2 rubygems

Version Path
bsielski_control_flow-1.0.0 vendor/bundle/ruby/2.5.0/gems/bsielski_value_generator-1.4.0/lib/v_gen/whatever_gen.rb
bsielski_control_flow-1.0.0 vendor/bundle/ruby/2.5.0/gems/bsielski_value_generator-1.3.0/lib/v_gen/whatever_gen.rb
bsielski_control_flow-1.0.0 vendor/bundle/ruby/2.5.0/gems/bsielski_value_generator-1.2.0/lib/bsielski_v_gen/whatever_gen.rb
bsielski_value_generator-1.4.0 lib/v_gen/whatever_gen.rb
bsielski_value_generator-1.3.0 lib/v_gen/whatever_gen.rb
bsielski_value_generator-1.2.0 lib/bsielski_v_gen/whatever_gen.rb
bsielski_value_generator-1.1.0 lib/bsielski_v_gen/whatever_gen.rb
bsielski_value_generator-1.0.1 lib/bsielski_v_gen/whatever_gen.rb
bsielski_value_generator-1.0.0 lib/bsielski_v_gen/whatever_gen.rb