File: helpers.rb

package info (click to toggle)
ruby-spreadsheet 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 7,356 kB
  • ctags: 644
  • sloc: ruby: 6,941; makefile: 10
file content (11 lines) | stat: -rw-r--r-- 193 bytes parent folder | download | duplicates (5)
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