module RV::RV_Generator

The RV_Generator module provides a common core of methods to make all of the RV classes iterable.

Public Instance Methods

each() click to toggle source
# File lib/random_variates.rb, line 28
def each
  Enumerator.new { |y| loop { y << self.next } }
end
next() click to toggle source
# File lib/random_variates.rb, line 24
def next
  raise 'next not implemented!'
end