class Object
Public Instance Methods
Percentage(object)
click to toggle source
# File lib/percentage.rb, line 113 def Percentage(object) Percentage.new(object.integer? ? object : object / 100) end
# File lib/percentage.rb, line 113 def Percentage(object) Percentage.new(object.integer? ? object : object / 100) end