Sha256: c6a7ac96f534e898fb43921c5c80e8e84f69192c3d54f5d9c30eabef929cf608
Contents?: true
Size: 1.13 KB
Versions: 3
Compression:
Stored size: 1.13 KB
Contents
require 'spreadsheet_architect/mime_types' require 'spreadsheet_architect/action_controller_renderers' require 'spreadsheet_architect/exceptions' require 'spreadsheet_architect/utils' require 'spreadsheet_architect/utils/xlsx' require 'spreadsheet_architect/class_methods/csv' require 'spreadsheet_architect/class_methods/ods' require 'spreadsheet_architect/class_methods/xlsx' module SpreadsheetArchitect def self.included(base) base.send(:extend, ClassMethods) end extend SpreadsheetArchitect::ClassMethods @default_options = { headers: true, header_style: {background_color: "AAAAAA", color: "FFFFFF", align: :center, bold: false, font_name: 'Arial', font_size: 10, italic: false, underline: false}, row_style: {background_color: nil, color: "000000", align: :left, bold: false, font_name: 'Arial', font_size: 10, italic: false, underline: false} } def self.default_options=(val) if val.is_a?(Hash) @default_options = val else raise SpreadsheetArchitect::Exceptions::OptionTypeError.new("SpreadsheetArchitect.default_options") end end def self.default_options @default_options end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spreadsheet_architect-3.2.1 | lib/spreadsheet_architect.rb |
spreadsheet_architect-3.2.0 | lib/spreadsheet_architect.rb |
spreadsheet_architect-3.1.0 | lib/spreadsheet_architect.rb |