Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/redmilk/monkey.rb
Instance Method Summary collapse
Instance Method Details
#to_cents ⇒ Object
15 16 17 |
# File 'lib/redmilk/monkey.rb', line 15 def to_cents (to_s.gsub(/[^-.0-9]/, '').to_f * 100).to_i end |