Sha256: c133b3b8acfcb8d22e239e329335a9bc26b6ddcb00d9188c2d3f7d1f919f889e
Contents?: true
Size: 200 Bytes
Versions: 8
Compression:
Stored size: 200 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 end
Version data entries
8 entries across 8 versions & 1 rubygems