class DocxGenerator::Word::Tabs

Represent the ‘w:tabs` element from Office Open XML specification. This class should not be used directly by the users of the library.

Public Class Methods

new(tab_stops) click to toggle source

Create a new ‘w:tabs` element. @param tab_stops [Array] The tab stops.

Calls superclass method DocxGenerator::Element::new
# File lib/docx_generator/word/formatting.rb, line 99
def initialize(tab_stops)
  tab_stop_elements = tab_stops.inject([]) do |tab_stop_elements, tab_stop|
    tab_stop_elements << Tab.new(tab_stop)
  end
  super("w:tabs", {}, tab_stop_elements)
end