Sha256: 0368e6ca542085765b2f32644ce55cc3c101e2b830c71f171acbd2b743d2c2d8
Contents?: true
Size: 361 Bytes
Versions: 6
Compression:
Stored size: 361 Bytes
Contents
module Voom module Presenters module Helpers module Redact # https://material.io/guidelines/patterns/data-formats.html#data-formats-data-redaction-truncation def redact(string, last_chars = 4) return "" unless string "• • • #{string.split(//).last(last_chars).join}" end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems