Sha256: b4e77eaff5be2721a461c51f1c516a3a600690c02e3b9c2c11034f9a02e26248

Contents?: true

Size: 130 Bytes

Versions: 15

Compression:

Stored size: 130 Bytes

Contents

 class Numeric
   def group_digits(sep=",")
     self.to_s.reverse.scan(/(?:\d*\.)?\d{1,3}-?/).join(sep).reverse
   end
 end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sane-0.25.8 lib/sane/numeric.rb
sane-0.25.7 lib/sane/numeric.rb
sane-0.25.6 lib/sane/numeric.rb
sane-0.25.5 lib/sane/numeric.rb
sane-0.25.4 lib/sane/numeric.rb
sane-0.25.3 lib/sane/numeric.rb
sane-0.25.2 lib/sane/numeric.rb
sane-0.25.1 lib/sane/numeric.rb
sane-0.25.0 lib/sane/numeric.rb
sane-0.24.6 lib/sane/numeric.rb
sane-0.24.5 lib/sane/numeric.rb
sane-0.24.4 lib/sane/numeric.rb
sane-0.24.3 lib/sane/numeric.rb
sane-0.24.2 lib/sane/numeric.rb
sane-0.24.1 lib/sane/numeric.rb