Class: Goldendocx::Components::Paragraph

Inherits:
Object
  • Object
show all
Includes:
Element
Defined in:
lib/goldendocx/components/paragraph.rb

Instance Method Summary collapse

Methods included from Element

#build_element, #initialize, #namespace, #tag, #tag_name, #to_element, #to_xml

Methods included from HasChildren

#children, #read_child, #read_children

Methods included from HasAttributes

#assign_attributes, #attributes, #read_attributes

Instance Method Details

#align=(align) ⇒ Object



14
15
16
# File 'lib/goldendocx/components/paragraph.rb', line 14

def align=(align)
  property.align.align = align if align
end

#style=(style) ⇒ Object



18
19
20
# File 'lib/goldendocx/components/paragraph.rb', line 18

def style=(style)
  property.style.style_id = style if style
end