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

Version Path
mumuki-domain-8.1.2 lib/mumuki/domain/extensions/hash.rb
mumuki-domain-8.1.1 lib/mumuki/domain/extensions/hash.rb
mumuki-domain-8.1.0 lib/mumuki/domain/extensions/hash.rb
mumuki-domain-8.0.0 lib/mumuki/domain/extensions/hash.rb
mumuki-domain-7.12.2 lib/mumuki/domain/extensions/hash.rb
mumuki-domain-7.12.1 lib/mumuki/domain/extensions/hash.rb
mumuki-domain-7.12.0 lib/mumuki/domain/extensions/hash.rb
mumuki-domain-7.11.1 lib/mumuki/domain/extensions/hash.rb
mumuki-laboratory-7.11.1 vendor/bundle/ruby/2.6.0/bundler/gems/mumuki-domain-c92f2a7212e2/lib/mumuki/domain/extensions/hash.rb
mumuki-laboratory-7.11.0 vendor/bundle/ruby/2.6.0/bundler/gems/mumuki-domain-2e15c3330133/lib/mumuki/domain/extensions/hash.rb
mumuki-domain-7.11.0 lib/mumuki/domain/extensions/hash.rb
mumuki-domain-7.10.1 lib/mumuki/domain/extensions/hash.rb
mumuki-domain-7.10.0 lib/mumuki/domain/extensions/hash.rb
mumuki-laboratory-7.9.2 vendor/bundle/ruby/2.6.0/bundler/gems/mumuki-domain-7082a83493eb/lib/mumuki/domain/extensions/hash.rb
mumuki-domain-7.9.2 lib/mumuki/domain/extensions/hash.rb
mumuki-laboratory-7.9.1 vendor/bundle/ruby/2.6.0/bundler/gems/mumuki-domain-b162dc91aa77/lib/mumuki/domain/extensions/hash.rb
mumuki-domain-7.9.1 lib/mumuki/domain/extensions/hash.rb
mumuki-laboratory-7.9.0 vendor/bundle/ruby/2.6.0/bundler/gems/mumuki-domain-520f859ca8af/lib/mumuki/domain/extensions/hash.rb
mumuki-domain-7.9.0 lib/mumuki/domain/extensions/hash.rb
mumuki-domain-7.7.3 lib/mumuki/domain/extensions/hash.rb