lib/fakeredis/zset.rb
def _floatify(str)
      if (( inf = str.to_s.match(/^([+-])?inf/i) ))
        (inf[1] == "-" ? -1.0 : 1.0) / 0.0
      else
        Float str
      end
    end
# Originally lifted from redis-rb
Originally lifted from redis-rb
Originally lifted from redis - rb
def _floatify(str)
      if (( inf = str.to_s.match(/^([+-])?inf/i) ))
        (inf[1] == "-" ? -1.0 : 1.0) / 0.0
      else
        Float str
      end
    end
def _floatify ( str ) if ( ( inf = str . to_s . match ( / ^([+-])?inf /i ) ) ) ( inf [ 1 ] == "-" ? - 1.0 : 1.0 ) / 0.0 else Float str end end
Originally lifted from redis-rb
Originally lifted from redis - rb
str