| Class | RandomGenerators::RandomGenerator |
| In: |
lib/random_generators/random_generator.rb
|
| Parent: | Object |
# File lib/random_generators/random_generator.rb, line 20 def check_choose_float ( f ) unless f.is_a? Float raise ArgumentError, "Need a float (not #{f})" end if f <= 0 raise ArgumentError, "Need an positive value (not #{f})" end end