Class: MimiCheck::Generator::Int
- Inherits:
-
Object
- Object
- MimiCheck::Generator::Int
- Includes:
- MimiCheck::Generator
- Defined in:
- lib/mimicheck/generator/int.rb
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(range = -1e9..1e9) ⇒ Int
constructor
A new instance of Int.
Methods included from MimiCheck::Generator
Constructor Details
Instance Method Details
#generate ⇒ Object
12 13 14 |
# File 'lib/mimicheck/generator/int.rb', line 12 def generate float_gen.generate.to_i end |