method
infinity
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Range
infinity(negative: false)private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/range.rb, line 76
def infinity(negative: false)
if subtype.respond_to?(:infinity)
subtype.infinity(negative: negative)
elsif negative
-::Float::INFINITY
else
::Float::INFINITY
end
end