Sha256: a662be210fddab3f3585a1bb89b4c613c04e84bd84486c60730d2ec970902f5d
Contents?: true
Size: 340 Bytes
Versions: 1
Compression:
Stored size: 340 Bytes
Contents
module PR module Fields class FloatField def initialize value = '' @value = value end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pr-0.0.1 | lib/pr/fields/float_field.rb |