Sha256: ed74d6cef8b0615771db18a4ae7819c4b19029263544ba2c55bd5a6ce2e2b882

Contents?: true

Size: 225 Bytes

Versions: 5

Compression:

Stored size: 225 Bytes

Contents

class Array
  if RUBY_VERSION < '2.1.0'
    def to_h
      Hash[to_a]
    end unless respond_to? :to_h
  end

  def delete_all *entries
    entries.map {|entry| delete entry }.compact
  end unless respond_to? :delete_all
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
asciidoctor-pdf-1.5.0.alpha.12 lib/asciidoctor-pdf/core_ext/array.rb
asciidoctor-pdf-1.5.0.alpha.11 lib/asciidoctor-pdf/core_ext/array.rb
asciidoctor-pdf-1.5.0.alpha.10 lib/asciidoctor-pdf/core_ext/array.rb
asciidoctor-pdf-1.5.0.alpha.9 lib/asciidoctor-pdf/core_ext/array.rb
asciidoctor-pdf-1.5.0.alpha.8 lib/asciidoctor-pdf/core_ext/array.rb