Sha256: 270ef7b0240cea69440ab0752508738077f2ee563a78897bb8b17c250874d958
Contents?: true
Size: 331 Bytes
Versions: 5
Compression:
Stored size: 331 Bytes
Contents
module EditableComponents class ItemInteger < Item alias_attribute :data, :data_integer def init self.data = 0 self end def update_data( value ) self.data = value.to_i self.save end def to_s self.data.to_s end def self.type_name 'integer' end end end
Version data entries
5 entries across 5 versions & 1 rubygems