Sha256: 1bacf1b315a7cf75e48c2ceb48cffa30c9ef592b720ca4f6602f9f949e36be64

Contents?: true

Size: 169 Bytes

Versions: 4

Compression:

Stored size: 169 Bytes

Contents

require 'rubyonacid/factory'

module RubyOnAcid

class RandomFactory < Factory

  #Returns a random value between 0 and 1.
  def get_unit(key)
    rand
  end

end


end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubyonacid-0.2.0 lib/rubyonacid/factories/random.rb
rubyonacid-0.1.2 lib/rubyonacid/factories/random.rb
rubyonacid-0.1.1 lib/rubyonacid/factories/random.rb
rubyonacid-0.1.0 lib/rubyonacid/factories/random.rb