Class: Range

Inherits:
Object
  • Object
show all
Defined in:
lib/randexp/core_ext/range.rb

Instance Method Summary collapse

Instance Method Details

#ofObject



6
7
8
# File 'lib/randexp/core_ext/range.rb', line 6

def of
  pick.of { yield }
end

#pickObject



2
3
4
# File 'lib/randexp/core_ext/range.rb', line 2

def pick
  to_a.pick
end