Method: Axlsx::Styles#parse_alignment_options

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

#parse_alignment_options(options = {}) ⇒ CellAlignment

parses add_style options for alignment noop if options hash does not include :alignment key

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • alignment (Hash)

    A hash of options to prive the CellAlignment intializer

Returns:

See Also:



260
261
262
263
# File 'lib/axlsx/stylesheet/styles.rb', line 260

def parse_alignment_options(options={})
  return unless options[:alignment]
  CellAlignment.new options[:alignment]
end