Sha256: 77450b1203d0fbc60fd81043e052c09321d5287b3077ccb894af509273336424
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 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 def convert_max(method, value) value.nil? ? Float::INFINITY : super end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
superstore-2.5.0 | lib/superstore/types/integer_range_type.rb |