Sha256: 0690fd3500aeadc60d60e1dc03deb1b71406b5c845c753917dc7c727886b3706
Contents?: true
Size: 231 Bytes
Versions: 3
Compression:
Stored size: 231 Bytes
Contents
class CoercedPercent < Struct.new(:percent) def + other other + self * other end def - other other - self * other end def * other other * percent.to_f end def / other other / percent.to_f end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
percentable-1.1.2 | lib/percentable/coerced_percent.rb |
percentable-1.0.2 | lib/percentable/coerced_percent.rb |
percentable-1.0.1 | lib/percentable/coerced_percent.rb |