class OpenXml::Xlsx::Elements::Alignment
Public Instance Methods
attributes()
click to toggle source
# File lib/openxml/xlsx/elements/alignment.rb, line 6 def attributes {}.tap do |attrs| attrs[:horizontal] = horizontal if horizontal attrs[:vertical] = vertical if vertical attrs[:indent] = indent if indent attrs[:wrapText] = wrapText if wrapText end end
to_xml(xml)
click to toggle source
# File lib/openxml/xlsx/elements/alignment.rb, line 15 def to_xml(xml) xml.alignment(attributes) end