Class: RubyXL::Writer::CalcChainWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/rubyXL/writer/calc_chain_writer.rb

Overview

TODO

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dirpathObject

Returns the value of attribute dirpath.



14
15
16
# File 'lib/rubyXL/writer/calc_chain_writer.rb', line 14

def dirpath
  @dirpath
end

#filepathObject

Returns the value of attribute filepath.



14
15
16
# File 'lib/rubyXL/writer/calc_chain_writer.rb', line 14

def filepath
  @filepath
end

#workbookObject

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

#writeObject



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