Sha256: 1fa84de41c625010753786d12b40c2ba287976e5b93834e5d7fae91be67880e3
Contents?: true
Size: 362 Bytes
Versions: 2
Compression:
Stored size: 362 Bytes
Contents
module Stockman module Logic class Utils def self.serialize_amount(value) if value == Float::INFINITY 'inf' else value.to_i end end def self.deserialize_amount(value) if value == 'inf' Float::INFINITY else value.to_i end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stockman-logic-0.1.1 | lib/stockman/logic/utils.rb |
stockman-logic-0.1.0 | lib/stockman/logic/utils.rb |