Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/kuality-coeus/core_extensions.rb

Instance Method Summary collapse

Instance Method Details

#groomObject

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