module XLSXToHTML

Constants

VERSION

Public Class Methods

configuration() click to toggle source
# File lib/xlsx_to_html.rb, line 13
def self.configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/xlsx_to_html.rb, line 17
def self.configure
  yield configuration
end
convert(xlsx_path, expected_headers = [], key: nil) click to toggle source
# File lib/xlsx_to_html.rb, line 21
def self.convert(xlsx_path, expected_headers = [], key: nil)
  data = XLSXToHTML::SpreadsheetParser.parse(xlsx_path, expected_headers)
  XLSXToHTML::Renderer.new(data).render(key: key)
end