Class: RubyXL::CommentsFile

Inherits:
OOXMLTopLevelObject show all
Defined in:
lib/rubyXL/objects/comments.rb

Overview

Constant Summary collapse

CONTENT_TYPE =
'application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml'
REL_TYPE =
'http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments'

Constants inherited from OOXMLTopLevelObject

OOXMLTopLevelObject::ROOT, OOXMLTopLevelObject::SAVE_ORDER

Instance Attribute Summary collapse

Attributes inherited from OOXMLTopLevelObject

#root

Instance Method Summary collapse

Methods inherited from OOXMLTopLevelObject

#add_to_zip, #file_index, parse_file, set_namespaces

Methods included from OOXMLObjectInstanceMethods

#==, #before_write_xml, included, #index_in_collection, #initialize, #write_xml

Instance Attribute Details

#workbookObject

Returns the value of attribute workbook.



39
40
41
# File 'lib/rubyXL/objects/comments.rb', line 39

def workbook
  @workbook
end

Instance Method Details

#xlsx_pathObject



41
42
43
# File 'lib/rubyXL/objects/comments.rb', line 41

def xlsx_path
  ROOT.join('xl', "comments#{file_index}.xml")
end