Class RandomArray
In: rushcheck/array.rb
Parent: Array

class RandomArray acts a random generator of arrays. Programmer can make a subclass of RandomArray to get user defined generators.

Methods

Included Modules

RushCheck::Coarbitrary

Public Class methods

a private method for self.arbitrary

a private method for self.arbitrary

self.set_pattern must be executed before calling self.arbitrary. self.set_pattern defines pattern of random arrays for self.arbitrary. self.set_pattern takes a variable and a block, where the variable should be a class which is used for the first element of random array. On the other hand, the block should define random array by inductive way; the block takes two variables and the first variable is assumed as an array and the second variable is the index of array.

Public Instance methods

[Validate]