Sha256: 038c83a7cd7441c315953667a5f4ad1df204e443b0506a817aefeba00580d422

Contents?: true

Size: 223 Bytes

Versions: 11

Compression:

Stored size: 223 Bytes

Contents

# frozen_string_literal: true

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

  def sum
    reduce(&:+)
  end unless method_defined? :sum
end

Version data entries

11 entries across 11 versions & 1 rubygems

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