Sha256: 5399796108e534921c9a599ce80263843c9c4b5de20fb3822a07d1b54e9205b8

Contents?: true

Size: 233 Bytes

Versions: 4

Compression:

Stored size: 233 Bytes

Contents

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
asciidoctor-pdf-1.5.0.alpha.16 lib/asciidoctor-pdf/core_ext/array.rb
asciidoctor-pdf-1.5.0.alpha.15 lib/asciidoctor-pdf/core_ext/array.rb
asciidoctor-pdf-1.5.0.alpha.14 lib/asciidoctor-pdf/core_ext/array.rb
asciidoctor-pdf-1.5.0.alpha.13 lib/asciidoctor-pdf/core_ext/array.rb