Libraries
»
lazar
(0.9.1)
»
Index (N)
»
Numeric
Class: Numeric
Inherits:
Object
Object
Numeric
show all
Defined in:
lib/overwrite.rb
Instance Method Summary
collapse
#
percent_of
(n) ⇒ Object
Instance Method Details
#
percent_of
(n) ⇒
Object
20 21 22
# File 'lib/overwrite.rb', line 20
def
percent_of
(
n
)
self
.
to_f
/
n
.
to_f
*
100.0
end