Method: Assert::Factory#float

Defined in:
lib/assert/factory.rb

#float(max = nil) ⇒ Object



13
14
15
# File 'lib/assert/factory.rb', line 13

def float(max = nil)
  self.type_cast(Random.float(max), :float)
end