Top Level Namespace
Defined Under Namespace
Classes: BigDecimal, Integer, Percentage, Rational
Instance Method Summary collapse
Instance Method Details
#Percentage(object) ⇒ Object
137 138 139 |
# File 'lib/percentage.rb', line 137 def Percentage(object) Percentage.new(object.integer? ? object : object / 100) end |