Class: OoxmlParser::NumberingLevel
- Inherits:
-
Object
- Object
- OoxmlParser::NumberingLevel
- Defined in:
- lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering/numbering_properties/numbering_level.rb
Instance Attribute Summary collapse
-
#font ⇒ Object
Returns the value of attribute font.
-
#ilvl ⇒ Object
Returns the value of attribute ilvl.
-
#ind ⇒ Object
Returns the value of attribute ind.
-
#level_jc ⇒ Object
Returns the value of attribute level_jc.
-
#level_text ⇒ Object
Returns the value of attribute level_text.
-
#num_format ⇒ Object
Returns the value of attribute num_format.
-
#start ⇒ Object
Returns the value of attribute start.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(ilvl = nil, start = nil, num_fmt = nil, lvl_text = nil, lvl_jc = nil, ind = nil, font = nil) ⇒ NumberingLevel
constructor
A new instance of NumberingLevel.
Constructor Details
#initialize(ilvl = nil, start = nil, num_fmt = nil, lvl_text = nil, lvl_jc = nil, ind = nil, font = nil) ⇒ NumberingLevel
Returns a new instance of NumberingLevel.
5 6 7 8 9 10 11 12 13 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering/numbering_properties/numbering_level.rb', line 5 def initialize(ilvl = nil, start = nil, num_fmt = nil, lvl_text = nil, lvl_jc = nil, ind = nil, font = nil) @ilvl = ilvl @start = start @num_format = num_fmt @level_text = lvl_text @level_jc = lvl_jc @ind = ind @font = font end |
Instance Attribute Details
#font ⇒ Object
Returns the value of attribute font.
3 4 5 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering/numbering_properties/numbering_level.rb', line 3 def font @font end |
#ilvl ⇒ Object
Returns the value of attribute ilvl.
3 4 5 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering/numbering_properties/numbering_level.rb', line 3 def ilvl @ilvl end |
#ind ⇒ Object
Returns the value of attribute ind.
3 4 5 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering/numbering_properties/numbering_level.rb', line 3 def ind @ind end |
#level_jc ⇒ Object
Returns the value of attribute level_jc.
3 4 5 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering/numbering_properties/numbering_level.rb', line 3 def level_jc @level_jc end |
#level_text ⇒ Object
Returns the value of attribute level_text.
3 4 5 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering/numbering_properties/numbering_level.rb', line 3 def level_text @level_text end |
#num_format ⇒ Object
Returns the value of attribute num_format.
3 4 5 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering/numbering_properties/numbering_level.rb', line 3 def num_format @num_format end |
#start ⇒ Object
Returns the value of attribute start.
3 4 5 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering/numbering_properties/numbering_level.rb', line 3 def start @start end |
Instance Method Details
#==(other) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering/numbering_properties/numbering_level.rb', line 15 def ==(other) if @font.nil? || other.font.nil? # Ilya Kirillov change logic of numbering font of bullets, so check should be correct @start.to_s == other.start.to_s && @num_format == other.num_format && @level_text == other.level_text && @ind.equal_with_round(other.ind) else @start.to_s == other.start.to_s && @num_format == other.num_format && @level_text == other.level_text && @ind.equal_with_round(other.ind) && @font == other.font end end |