Class: Odf::Element::Abstract
- Inherits:
-
Object
- Object
- Odf::Element::Abstract
- Defined in:
- lib/odf/element/abstract.rb
Direct Known Subclasses
BinaryData, DrawFrame, DrawPage, DrawTextBox, Heading, Image, Number, Paragraph, Table, TableCell, TableRow, TextList, TextListItem
Instance Attribute Summary collapse
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
- #document ⇒ Object
-
#initialize(parent, options = {}) ⇒ Abstract
constructor
A new instance of Abstract.
-
#valid_options ⇒ Object
Accessor for valid options of element.
- #xml_tag ⇒ Object
Constructor Details
Instance Attribute Details
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
4 5 6 |
# File 'lib/odf/element/abstract.rb', line 4 def parent @parent end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
4 5 6 |
# File 'lib/odf/element/abstract.rb', line 4 def root @root end |
Instance Method Details
#document ⇒ Object
21 22 23 |
# File 'lib/odf/element/abstract.rb', line 21 def document parent.document end |
#valid_options ⇒ Object
Accessor for valid options of element
13 14 15 |
# File 'lib/odf/element/abstract.rb', line 13 def @valid_options ||= defined?(self.class::VALID_OPTIONS) ? self.class::VALID_OPTIONS : {} end |
#xml_tag ⇒ Object
17 18 19 |
# File 'lib/odf/element/abstract.rb', line 17 def xml_tag self.class::XML_TAG end |