Sha256: 0e2ad8202eb708724a5788e4f4ed09386a9dca3141b9b6d0e9d03c20c39e7292
Contents?: true
Size: 319 Bytes
Versions: 7
Compression:
Stored size: 319 Bytes
Contents
module ContentsCore class ItemFloat < Item alias_attribute :data, :data_float def init self.data = 0 self end def update_data( value ) self.data = value.to_f self.save end def to_s self.data.to_s end def self.type_name 'float' end end end
Version data entries
7 entries across 7 versions & 1 rubygems