Module: SpreadsheetArchitect

Extended by:
ClassMethods
Defined in:
lib/spreadsheet_architect.rb,
lib/spreadsheet_architect/utils.rb,
lib/spreadsheet_architect/version.rb,
lib/spreadsheet_architect/exceptions.rb,
lib/spreadsheet_architect/utils/xlsx.rb,
lib/spreadsheet_architect/class_methods/csv.rb,
lib/spreadsheet_architect/class_methods/ods.rb,
lib/spreadsheet_architect/class_methods/xlsx.rb

Defined Under Namespace

Modules: ClassMethods, Exceptions, Utils

Constant Summary collapse

XLSX_COLUMN_TYPES =
[:string, :integer, :float, :date, :time, :boolean].freeze
ODS_COLUMN_TYPES =
[:string, :float, :date, :time, :boolean].freeze
VERSION =
"4.0.0"

Class Method Summary collapse

Methods included from ClassMethods

to_axlsx_package, to_csv, to_ods, to_rodf_spreadsheet, to_xlsx

Class Method Details

.default_optionsObject



34
35
36
# File 'lib/spreadsheet_architect.rb', line 34

def self.default_options
  @default_options
end

.default_options=(val) ⇒ Object



26
27
28
29
30
31
32
# File 'lib/spreadsheet_architect.rb', line 26

def self.default_options=(val)
  if val.is_a?(Hash)
    @default_options = val
  else
    raise SpreadsheetArchitect::Exceptions::OptionTypeError.new("SpreadsheetArchitect.default_options")
  end
end

.included(base) ⇒ Object



14
15
16
# File 'lib/spreadsheet_architect.rb', line 14

def self.included(base)
  base.send(:extend, ClassMethods)
end