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