Sha256: 0ac8a1d4d2596080d5ab42d4e482a94715fff073b96252d14db997a7f23d8212

Contents?: true

Size: 873 Bytes

Versions: 11

Compression:

Stored size: 873 Bytes

Contents

# -*- encoding : utf-8 -*-
$KCODE="u" if RUBY_VERSION < "1.9"
require_relative 'workbook/modules/cache'
require_relative 'workbook/modules/cell'
require_relative 'workbook/types/date'
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

11 entries across 11 versions & 1 rubygems

Version Path
workbook-0.7.3 lib/workbook.rb
workbook-0.7.2 lib/workbook.rb
workbook-0.7.1 lib/workbook.rb
workbook-0.7 lib/workbook.rb
workbook-0.6 lib/workbook.rb
workbook-0.5 lib/workbook.rb
workbook-0.4.14 lib/workbook.rb
workbook-0.4.13 lib/workbook.rb
workbook-0.4.12 lib/workbook.rb
workbook-0.4.11 lib/workbook.rb
workbook-0.4.10 lib/workbook.rb