Sha256: 47b5bcc8d4961797c571bd52e9689ba55c8f94a0b8691247dd02cd38fd045121
Contents?: true
Size: 492 Bytes
Versions: 43
Compression:
Stored size: 492 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 def randomize_with(randomizer, seed) transform_values { |v| v.randomize_with randomizer, seed } end end
Version data entries
43 entries across 43 versions & 1 rubygems