Sha256: c6f091d096e66107053350d7c3d220e2081363d93de2cb65e84dc8a6bc746276
Contents?: true
Size: 400 Bytes
Versions: 7
Compression:
Stored size: 400 Bytes
Contents
module PR module Fields class FloatField def initialize value = '', options = {} @value, @options = value, options end attr_reader :options def raw @value end def populate float @value = float.to_s end def convert Float @value rescue ArgumentError raise InvalidValue end end end end
Version data entries
7 entries across 7 versions & 1 rubygems