Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/kuality-coeus/core_extensions.rb
Instance Method Summary collapse
-
#groom ⇒ Object
Used to remove commas from long number strings, then converting the result to a Float so that it can be used in calculations.
Instance Method Details
#groom ⇒ Object
Used to remove commas from long number strings, then converting the result to a Float so that it can be used in calculations.
6 7 8 |
# File 'lib/kuality-coeus/core_extensions.rb', line 6 def groom self.gsub(',','').to_f end |