Sha256: cf72ba6f2a8113667022478d84f5240e6102f5fe2c2be22ee37e9ff6e4a5f475

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

require_relative 'numbering/numbering_properties'
module OoxmlParser
  class Numbering
    attr_accessor :size, :font, :symbol, :start_at, :type, :ilvl, :numbering_properties

    def initialize(ilvl = 0, numbering_properties = nil)
      @ilvl = ilvl
      @numbering_properties = numbering_properties
    end

    def numbering_level_current
      @numbering_properties.ilvls.each do |current_ilvl|
        return current_ilvl if current_ilvl.ilvl == @ilvl
      end
      nil
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ooxml_parser-0.1.2 lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering.rb
ooxml_parser-0.1.1 lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering.rb