Sha256: b4bd23ebe6cf8e7524c1a8f349d0e8e277f7e5f5677e50ba0c1fdf7857ba31f2
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
# frozen_string_literal: true module DirtySeed module Assigners module Type # Manages float assignments class Float < Assigner include FakerHelper include MinMaxHelper # Returns a random float matching validators # @return [Float] # @note `min` and `max` are defined in MinMaxHelper def value faker_value( generator: :Number, method: :between, options: { from: min, to: max } ) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dirty_seed-0.2.1 | lib/dirty_seed/assigners/type/float.rb |
dirty_seed-0.2.0 | lib/dirty_seed/assigners/type/float.rb |