Class: OoxmlParser::Box
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::Box
- Defined in:
- lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/box.rb
Overview
Class for ‘box`, `borderBox` data
Instance Attribute Summary collapse
-
#borders ⇒ Object
Returns the value of attribute borders.
-
#element ⇒ Object
Returns the value of attribute element.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#initialize(parent: nil) ⇒ Box
constructor
A new instance of Box.
-
#parse(node) ⇒ Box
Parse Box object.
Methods inherited from OOXMLDocumentObject
#==, #boolean_attribute_value, #parse_xml, #with_data?
Methods included from OoxmlObjectAttributeHelper
#attribute_enabled?, #option_enabled?
Methods included from OoxmlDocumentObjectHelper
Constructor Details
#initialize(parent: nil) ⇒ Box
Returns a new instance of Box.
8 9 10 11 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/box.rb', line 8 def initialize(parent: nil) @borders = false super end |
Instance Attribute Details
#borders ⇒ Object
Returns the value of attribute borders.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/box.rb', line 6 def borders @borders end |
#element ⇒ Object
Returns the value of attribute element.
6 7 8 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_formula/box.rb', line 6 def element @element end |