Sha256: 634faa9b8095e8b01ae77f3d2cccef0b837a500a64a387fa875ddf24b5f3b57c

Contents?: true

Size: 135 Bytes

Versions: 23

Compression:

Stored size: 135 Bytes

Contents

class Array
  def rcompact
    dup.rcompact!
  end
  def rcompact!
    while !empty? && last.nil?
      pop
    end
    self
  end
end

Version data entries

23 entries across 23 versions & 5 rubygems

Version Path
nulogy-spreadsheet-0.6.5.7.4 lib/spreadsheet/helpers.rb
spreadsheet-0.6.8 lib/spreadsheet/helpers.rb
spreadsheet-0.6.7 lib/spreadsheet/helpers.rb
nulogy-spreadsheet-0.6.5.7.3 lib/spreadsheet/helpers.rb
nulogy-spreadsheet-0.6.5.7.2 lib/spreadsheet/helpers.rb
spreadsheet-martica-0.6.5.7.m2 lib/spreadsheet/helpers.rb
spreadsheet-martica-0.6.5.7.m1 lib/spreadsheet/helpers.rb
ttb-spreadsheet-0.6.5.8 lib/spreadsheet/helpers.rb
spreadsheet-0.6.5.9 lib/spreadsheet/helpers.rb
spreadsheet-0.6.5.8 lib/spreadsheet/helpers.rb
spreadsheet-0.6.5.7 lib/spreadsheet/helpers.rb
spreadsheet-0.6.5.6 lib/spreadsheet/helpers.rb
spreadsheet-0.6.5.5 lib/spreadsheet/helpers.rb
spreadsheet-0.6.5.4 lib/spreadsheet/helpers.rb
spreadsheet-0.6.5.3 lib/spreadsheet/helpers.rb
spreadsheet-0.6.5.2 lib/spreadsheet/helpers.rb
spreadsheet-0.6.5.1 lib/spreadsheet/helpers.rb
ruby-spreadsheet-0.6.5 lib/spreadsheet/helpers.rb
spreadsheet-0.6.5.0 lib/spreadsheet/helpers.rb
spreadsheet-0.6.4.1 lib/spreadsheet/helpers.rb