Sha256: 7c30303edf7889f3933b737ed3073966e57a2434eace51db4cdd0fc93d1ebb1c

Contents?: true

Size: 793 Bytes

Versions: 3

Compression:

Stored size: 793 Bytes

Contents

# -*- encoding : utf-8 -*-
$KCODE="u" if RUBY_VERSION < "1.9"
require_relative 'workbook/modules/cache'
require_relative 'workbook/book'
require_relative 'workbook/sheet'
require_relative 'workbook/table'
require_relative 'workbook/nil_value'
require_relative 'workbook/row'
require_relative 'workbook/cell'
require_relative 'workbook/format'
require_relative 'workbook/template'
require_relative 'workbook/version'
require_relative 'workbook/column'

module Workbook
  class << self
    def caching_enabled?
      @@caching_enabled ||= true
    end
    # Disable caching globally (wherever applicable)
    def disable_caching!
      @@caching_enabled = false
    end
    # Enable caching globally (wherever applicable)
    def enable_caching!
      @@caching_enabled = true
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workbook-0.4.9 lib/workbook.rb
workbook-0.4.8 lib/workbook.rb
workbook-0.4.7 lib/workbook.rb