Class: HTOTConv::Generator::XlsxBase
- Inherits:
-
Base
- Object
- Base
- HTOTConv::Generator::XlsxBase
show all
- Defined in:
- lib/htot_conv/generator/base.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize, option_help
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
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
|