Class: OoxmlParser::MatrixRow

Inherits:
OOXMLDocumentObject show all
Defined in:
lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/matrix/matrix_row.rb

Overview

Class for ‘m:mr’ data

Instance Attribute Summary collapse

Attributes inherited from OOXMLDocumentObject

#parent

Instance Method Summary collapse

Methods inherited from OOXMLDocumentObject

#==, #boolean_attribute_value, #parse_xml, #with_data?

Methods included from OoxmlObjectAttributeHelper

#attribute_enabled?, #option_enabled?

Methods included from OoxmlDocumentObjectHelper

#to_hash

Constructor Details

#initialize(columns_count = 1, parent: nil) ⇒ MatrixRow

Returns a new instance of MatrixRow.



8
9
10
11
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/matrix/matrix_row.rb', line 8

def initialize(columns_count = 1, parent: nil)
  @columns = Array.new(columns_count)
  super(parent: parent)
end

Instance Attribute Details

#columnsObject

Returns the value of attribute columns.



6
7
8
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/matrix/matrix_row.rb', line 6

def columns
  @columns
end