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:



304
305
306
307
308
# File 'lib/axlsx/stylesheet/styles.rb', line 304

def parse_alignment_options(options = {})
  return unless options[:alignment]

  CellAlignment.new options[:alignment]
end