Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/retort/core_ext.rb
Instance Method Summary collapse
Instance Method Details
#percent ⇒ Object
12 13 14 |
# File 'lib/retort/core_ext.rb', line 12 def percent "#{percent_raw}%" end |
#percent_raw ⇒ Object
8 9 10 |
# File 'lib/retort/core_ext.rb', line 8 def percent_raw (self * 100).to_i end |