Sha256: 35fc403b2e1748fb772b7fb10e6247eecba1f12bf6e221a5e372b4b648830c32
Contents?: true
Size: 262 Bytes
Versions: 5
Compression:
Stored size: 262 Bytes
Contents
class Numeric def clamp min, max return min if min && (self <= min) return max if max && (self >= max) self end end class Hash def self.deep_sum *args args.inject({}) do |result, options| result.deep_merge options end end end
Version data entries
5 entries across 5 versions & 1 rubygems