Class: RubyXL::Writer::CalcChainWriter
- Inherits:
-
Object
- Object
- RubyXL::Writer::CalcChainWriter
- Defined in:
- lib/rubyXL/writer/calc_chain_writer.rb
Overview
TODO
Instance Attribute Summary collapse
-
#dirpath ⇒ Object
Returns the value of attribute dirpath.
-
#filepath ⇒ Object
Returns the value of attribute filepath.
-
#workbook ⇒ Object
Returns the value of attribute workbook.
Instance Method Summary collapse
-
#initialize(dirpath, wb) ⇒ CalcChainWriter
constructor
A new instance of CalcChainWriter.
- #write ⇒ Object
Constructor Details
#initialize(dirpath, wb) ⇒ CalcChainWriter
Returns a new instance of CalcChainWriter.
16 17 18 19 20 |
# File 'lib/rubyXL/writer/calc_chain_writer.rb', line 16 def initialize(dirpath, wb) @dirpath = dirpath @workbook = wb @filepath = dirpath + '/xl/calcChain.xml' end |
Instance Attribute Details
#dirpath ⇒ Object
Returns the value of attribute dirpath.
14 15 16 |
# File 'lib/rubyXL/writer/calc_chain_writer.rb', line 14 def dirpath @dirpath end |
#filepath ⇒ Object
Returns the value of attribute filepath.
14 15 16 |
# File 'lib/rubyXL/writer/calc_chain_writer.rb', line 14 def filepath @filepath end |
#workbook ⇒ Object
Returns the value of attribute workbook.
14 15 16 |
# File 'lib/rubyXL/writer/calc_chain_writer.rb', line 14 def workbook @workbook end |
Instance Method Details
#write ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/rubyXL/writer/calc_chain_writer.rb', line 22 def write() contents = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+"\n" contents += '' # file = File.new(@filepath, 'w+') # file.write(contents) # file.close contents end |