Class: HTOTConv::Generator::XlsxBase

Inherits:
Base
  • Object
show all
Defined in:
lib/htot_conv/generator/base.rb

Direct Known Subclasses

XlsxType0, XlsxType1, XlsxType2, XlsxType4, XlsxType5

Instance Method Summary collapse

Methods inherited from Base

#initialize, option_help

Constructor Details

This class inherits a constructor from HTOTConv::Generator::Base

Instance Method Details

#output(outputfile) ⇒ Object



23
24
25
26
27
28
29
30
31
# File 'lib/htot_conv/generator/base.rb', line 23

def output(outputfile)
  p = Axlsx::Package.new
  p.workbook do |wb|
    wb.add_worksheet do |ws|
      output_to_worksheet(ws)
    end
  end
  p.serialize(outputfile)
end

#output_to_worksheet(ws) ⇒ Object

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/htot_conv/generator/base.rb', line 19

def output_to_worksheet(ws)
  raise NotImplementedError.new("#{self.class.name}.#{__method__} is an abstract method.")
end