Sha256: a869c967390ec15e47c5791456a0df86e2d9a4663a944669edb1af46f210ffe6
Contents?: true
Size: 299 Bytes
Versions: 15
Compression:
Stored size: 299 Bytes
Contents
module Polyfill module V2_4 module Comparable def clamp(min, max) if min > max raise ArgumentError, 'min argument must be smaller than max argument' end return min if min > self return max if max < self self end end end end
Version data entries
15 entries across 15 versions & 1 rubygems