Sha256: bb825f40750b155810f6a2776fa5636148b65b0614fdd4e3485702c4eff05829
Contents?: true
Size: 238 Bytes
Versions: 3
Compression:
Stored size: 238 Bytes
Contents
module Bridge module Points def self.imps(points_difference) sign = (points_difference >= 0) ? 1 : -1 IMPS.each { |range, imps| return (imps * sign) if range.include?(points_difference.abs) } nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bridge-0.2.0 | lib/bridge/points.rb |
bridge-0.1.4 | lib/bridge/points.rb |
bridge-0.1.3 | lib/bridge/points.rb |