Sha256: 1a21e2733aabdc2ffe12d949b24ac5c432d1c8ea02946b78201fe9aac4302e51
Contents?: true
Size: 383 Bytes
Versions: 34
Compression:
Stored size: 383 Bytes
Contents
class Hash def markdownify!(*keys, **options) warn "Don't use markdownify. Use markdownified! instead" markdownified! *keys, **options end def markdownified!(*keys, **options) keys.each { |it| self[it] = self[it].markdownified(**options) } end def markdownified(*keys, **options) map { |k, v| key.in?(keys) ? v.markdownified(options) : v }.to_h end end
Version data entries
34 entries across 34 versions & 2 rubygems