Sha256: ebea217e596508a70fa4a5359a6196c179e998fcb5f283c7d4907d5e561670a5
Contents?: true
Size: 259 Bytes
Versions: 5
Compression:
Stored size: 259 Bytes
Contents
class String # # If string doesnt fit in `max_chars` then it will cut it and add '...' # def cut(max_chars) return self if size <= max_chars self[0...max_chars - 3] + '...' end def numeric? Integer(self) rescue false end end
Version data entries
5 entries across 5 versions & 1 rubygems