Class: OoxmlParser::Radical
- Inherits:
-
Object
- Object
- OoxmlParser::Radical
- Defined in:
- lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/radical.rb
Instance Attribute Summary collapse
-
#degree ⇒ Object
Returns the value of attribute degree.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(degree = 2, value = nil) ⇒ Radical
constructor
A new instance of Radical.
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
#degree ⇒ Object
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 |
#value ⇒ Object
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 |