class CoercedPercent

Public Instance Methods

*(other) click to toggle source
# File lib/percentable/coerced_percent.rb, line 10
def * other
  other * percent.to_f
end
+(other) click to toggle source
# File lib/percentable/coerced_percent.rb, line 2
def + other
  other + self * other
end
-(other) click to toggle source
# File lib/percentable/coerced_percent.rb, line 6
def - other
  other - self * other
end
/(other) click to toggle source
# File lib/percentable/coerced_percent.rb, line 14
def / other
  other / percent.to_f
end