Sha256: 3d47466d25e5e9d29d459ab0df6dcbd0b6250e18b2acd7da1cf8f3588a51f4b9
Contents?: true
Size: 669 Bytes
Versions: 56
Compression:
Stored size: 669 Bytes
Contents
# -*- encoding: utf-8 -*- require 'write_xlsx/package/xml_writer_simple' module Writexlsx class Formats include Writexlsx::Utility attr_reader :formats, :xf_format_indices, :dxf_format_indices def initialize @formats = [] @xf_format_indices = {} @dxf_format_indices = {} end def xf_index_by_key(key) @xf_format_indices[key] end def set_xf_index_by_key(key) @xf_format_indices[key] ||= 1 + @xf_format_indices.size end def dxf_index_by_key(key) @dxf_format_indices[key] end def set_dxf_index_by_key(key) @dxf_format_indices[key] ||= @dxf_format_indices.size end end end
Version data entries
56 entries across 56 versions & 1 rubygems