Class: XLSXToHTML::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/xlsx_to_html/configuration.rb

Constant Summary collapse

BOOLEAN_METHODS =
%i[common_template without_headers
dynamic_headers_row].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
13
14
15
# File 'lib/xlsx_to_html/configuration.rb', line 8

def initialize
  @template = get_template_path('default')
  @headers_template = get_template_path('default_headers')
  @rows_template = get_template_path('default_rows')
  @common_template = true
  @without_headers = false
  @dynamic_headers_row = false
end

Instance Attribute Details

#headers_templateObject

Returns the value of attribute headers_template.



3
4
5
# File 'lib/xlsx_to_html/configuration.rb', line 3

def headers_template
  @headers_template
end

#rows_templateObject

Returns the value of attribute rows_template.



3
4
5
# File 'lib/xlsx_to_html/configuration.rb', line 3

def rows_template
  @rows_template
end

#templateObject

Returns the value of attribute template.



3
4
5
# File 'lib/xlsx_to_html/configuration.rb', line 3

def template
  @template
end