Module: Waves::Ext::Float

Included in:
Float
Defined in:
lib/waves/ext/float.rb

Instance Method Summary collapse

Instance Method Details

#to_delimited(delim = ',') ⇒ Object



4
5
6
# File 'lib/waves/ext/float.rb', line 4

def to_delimited(delim=',')
  self.to_s.gsub(/(\d)(?=(\d\d\d)+\.)/, "\\1#{delim}")
end