class BigDecimal
Public Instance Methods
as_percentage_of(n)
click to toggle source
# File lib/percentage.rb, line 130 def as_percentage_of(n) Percentage.new(self / n) end
percent_of(n)
click to toggle source
# File lib/percentage.rb, line 126 def percent_of(n) n * Percentage(self) end
to_percentage()
click to toggle source
# File lib/percentage.rb, line 122 def to_percentage Percentage(self) end