| Class | Numeric |
| In: |
lib/utilities.rb
|
| Parent: | Object |
# File lib/utilities.rb, line 33
33: def as_percentage(total, multiplier = 100)
34: total.zero? ? 0.0 : multiplier * (self / total.to_f)
35: end