Method: Axlsx::CellAlignment#to_xml

Defined in:
lib/axlsx/stylesheet/cell_alignment.rb

#to_xml(xml) ⇒ String

Serializes the cell alignment

Parameters:

  • xml (Nokogiri::XML::Builder)

    The document builder instance this objects xml will be added to.

Returns:

  • (String)


91
92
93
# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 91

def to_xml(xml)
  xml.alignment(self.instance_values)      
end