module DocXify module Element class Paragraph < Base attr_accessor :text, :font, :size, :color, :background, :align, :inline_styling, :tab_stops_cm def initialize(document, text, options = {}) @document = document @text = text @font = options[:font] || document.font @size = options[:size] || document.size @color = options[:color] || document.color @background = options[:background] if options[:background] @background ||= document.background if document.background @align = options[:align] || :left @inline_styling = options[:inline_styling] || true @tab_stops_cm = options[:tab_stops_cm] || [] end def to_s(container = nil) # TODO: Implement all optionality "#{@text}" end end end end