Class: OoxmlParser::Numbering
- Inherits:
-
Object
- Object
- OoxmlParser::Numbering
- Defined in:
- lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering.rb
Instance Attribute Summary collapse
-
#font ⇒ Object
Returns the value of attribute font.
-
#ilvl ⇒ Object
Returns the value of attribute ilvl.
-
#numbering_properties ⇒ Object
Returns the value of attribute numbering_properties.
-
#size ⇒ Object
Returns the value of attribute size.
-
#start_at ⇒ Object
Returns the value of attribute start_at.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(ilvl = 0, numbering_properties = nil) ⇒ Numbering
constructor
A new instance of Numbering.
- #numbering_level_current ⇒ Object
Constructor Details
#initialize(ilvl = 0, numbering_properties = nil) ⇒ Numbering
Returns a new instance of Numbering.
6 7 8 9 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering.rb', line 6 def initialize(ilvl = 0, numbering_properties = nil) @ilvl = ilvl @numbering_properties = numbering_properties end |
Instance Attribute Details
#font ⇒ Object
Returns the value of attribute font.
4 5 6 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering.rb', line 4 def font @font end |
#ilvl ⇒ Object
Returns the value of attribute ilvl.
4 5 6 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering.rb', line 4 def ilvl @ilvl end |
#numbering_properties ⇒ Object
Returns the value of attribute numbering_properties.
4 5 6 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering.rb', line 4 def numbering_properties @numbering_properties end |
#size ⇒ Object
Returns the value of attribute size.
4 5 6 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering.rb', line 4 def size @size end |
#start_at ⇒ Object
Returns the value of attribute start_at.
4 5 6 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering.rb', line 4 def start_at @start_at end |
#symbol ⇒ Object
Returns the value of attribute symbol.
4 5 6 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering.rb', line 4 def symbol @symbol end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering.rb', line 4 def type @type end |
Instance Method Details
#numbering_level_current ⇒ Object
11 12 13 14 15 16 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering.rb', line 11 def numbering_level_current @numbering_properties.ilvls.each do |current_ilvl| return current_ilvl if current_ilvl.ilvl == @ilvl end nil end |