Sha256: 782c9a303138a9e0e5e86f3858749da8abdd4aaeb99e55646340d87009992011
Contents?: true
Size: 242 Bytes
Versions: 35
Compression:
Stored size: 242 Bytes
Contents
module PushType module Primitives class NumberType < Base def to_json unless value.blank? || value.to_s !~ /^[\+\-]?\d+/ (f = value.to_f) && (f % 1.0 == 0) ? f.to_i : f end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems