File: biff8.rb

package info (click to toggle)
ruby-spreadsheet 1.3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,980 kB
  • sloc: ruby: 6,939; makefile: 10
file content (19 lines) | stat: -rw-r--r-- 560 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Spreadsheet
  module Excel
    module Internals
      ##
      # Binary Formats and other configurations internal to Biff8. This Module is
      # likely to be expanded as Support for older Versions of Excel grows and more
      # Binary formats are moved here for disambiguation.
      module Biff8
        BINARY_FORMATS = {
          bof: "v4V2",
          dimensions: "V2v2x2"
        }
        def binfmt key # :nodoc:
          BINARY_FORMATS.fetch key do super end # standard:disable BlockSingleLineBraces
        end
      end
    end
  end
end