class VGen::WhateverGen
Public Class Methods
new( gens: [ proc {Random.new.rand} ] )
click to toggle source
# File lib/v_gen/whatever_gen.rb, line 3 def initialize( gens: [ proc {Random.new.rand} ] ) @gens = gens end
Public Instance Methods
call()
click to toggle source
# File lib/v_gen/whatever_gen.rb, line 9 def call() @gens.sample.call end