File: helpers.rb

package info (click to toggle)
ruby-spreadsheet 1.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,964 kB
  • sloc: ruby: 6,943; makefile: 10
file content (11 lines) | stat: -rw-r--r-- 193 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
module Spreadsheet
  module Helpers
    def rcompact(array)
      while !array.empty? && array.last.nil?
        array.pop
      end
      array
    end
    module_function :rcompact
  end
end