Sha256: 94190ced1952e03939bd9d71083d3c24f34078c133c656322c95ad470450343c
Contents?: true
Size: 137 Bytes
Versions: 30
Compression:
Stored size: 137 Bytes
Contents
class Numeric def commify to_s.commify end end class String def commify gsub(/(\d)(?=(\d{3})+(\..*)?$)/, '\1,') end end
Version data entries
30 entries across 30 versions & 1 rubygems