Class: Docxtor::Document::Heading
- Defined in:
- lib/docxtor/document/heading.rb
Constant Summary collapse
- H1 =
1- H2 =
2
Constants inherited from Paragraph
Paragraph::NESTED_PROPERTIES, Paragraph::PLAIN_PROPERTIES, Paragraph::PROPERTIES, Paragraph::STYLE
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
Methods inherited from Paragraph
#aliases, #line_break, #preserve_whitespace, #properties, #render, #write
Methods inherited from Element
Constructor Details
This class inherits a constructor from Docxtor::Document::Element
Instance Method Details
#after_initialize(nesting = H1, *args) ⇒ Object
7 8 9 10 |
# File 'lib/docxtor/document/heading.rb', line 7 def after_initialize(nesting = H1, *args) super(*args) @params[:style] ||= nesting end |