class Forall::Input::All

Exhaustive list of possible input values

Public Class Methods

new(items) click to toggle source
# File lib/forall/input.rb, line 59
def initialize(items)
  @items  = items
  @shrink = nil
end

Public Instance Methods

each(random, *args) { |input| ... } click to toggle source
# File lib/forall/input.rb, line 72
def each(random, *args)
  @items.each{|input| yield input }
end
exhaustive?() click to toggle source
# File lib/forall/input.rb, line 64
def exhaustive?
  true
end
sample(random, count: nil) click to toggle source
# File lib/forall/input.rb, line 68
def sample(random, count: nil)
  random.sample(@items, count: count)
end
size() click to toggle source
# File lib/forall/input.rb, line 76
def size
  @items.size
end