Class: OoxmlParser::Radical

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(degree = 2, value = nil) ⇒ Radical

Returns a new instance of Radical.



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

def initialize(degree = 2, value = nil)
  @degree = degree
  @value = value
end

Instance Attribute Details

#degreeObject

Returns the value of attribute degree.



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

def degree
  @degree
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/radical.rb', line 4

def value
  @value
end