Sha256: 3c568f118b7c0dc7f6d4be599bbeec6790887c058ef25b513444d3db2e2435e1

Contents?: true

Size: 125 Bytes

Versions: 11

Compression:

Stored size: 125 Bytes

Contents

# frozen_string_literal: true

class Hash
  def compact
    select {|_, val| val }
  end unless method_defined? :compact
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
asciidoctor-pdf-1.6.2 lib/asciidoctor/pdf/ext/core/hash.rb
asciidoctor-pdf-1.6.1 lib/asciidoctor/pdf/ext/core/hash.rb
asciidoctor-pdf-1.6.0 lib/asciidoctor/pdf/ext/core/hash.rb
asciidoctor-pdf-1.5.4 lib/asciidoctor/pdf/ext/core/hash.rb
asciidoctor-pdf-1.5.3 lib/asciidoctor/pdf/ext/core/hash.rb
asciidoctor-pdf-1.5.2 lib/asciidoctor/pdf/ext/core/hash.rb
asciidoctor-pdf-1.5.1 lib/asciidoctor/pdf/ext/core/hash.rb
asciidoctor-pdf-1.5.0 lib/asciidoctor/pdf/ext/core/hash.rb
asciidoctor-pdf-1.5.0.rc.3 lib/asciidoctor/pdf/ext/core/hash.rb
asciidoctor-pdf-1.5.0.rc.2 lib/asciidoctor/pdf/ext/core/hash.rb
asciidoctor-pdf-1.5.0.rc.1 lib/asciidoctor/pdf/ext/core/hash.rb