Sha256: fe3cd7ff7398eeed534075aeeec9860f813aacab90accb644d7fc4dcd93543ee
Contents?: true
Size: 326 Bytes
Versions: 1
Compression:
Stored size: 326 Bytes
Contents
module Superstore module Types class IntegerRangeType < RangeType self.subtype = IntegerType.new def serialize_for_open_ended(value) value&.abs == Float::INFINITY ? nil : super end def convert_min(method, value) value.nil? ? -Float::INFINITY : super end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
superstore-3.0.0 | lib/superstore/types/integer_range_type.rb |