Class: OoxmlParser::Operator

Inherits:
Object
  • Object
show all
Defined in:
lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/operator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operator = nil, bottom_value = nil, top_value = nil, value = nil) ⇒ Operator

Returns a new instance of Operator.



6
7
8
9
10
11
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/operator.rb', line 6

def initialize(operator = nil, bottom_value = nil, top_value = nil, value = nil)
  @operator = operator
  @bottom_value = bottom_value
  @top_value = top_value
  @value = value
end

Instance Attribute Details

#bottom_valueObject

Returns the value of attribute bottom_value.



4
5
6
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/operator.rb', line 4

def bottom_value
  @bottom_value
end

#operatorObject

Returns the value of attribute operator.



4
5
6
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/operator.rb', line 4

def operator
  @operator
end

#top_valueObject

Returns the value of attribute top_value.



4
5
6
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/operator.rb', line 4

def top_value
  @top_value
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/operator.rb', line 4

def value
  @value
end