Method: Axlsx.validate_vertical_alignment

Defined in:
lib/axlsx/util/validators.rb

.validate_vertical_alignment(v) ⇒ Object

Requires that the value is a valid vertical_alignment :top, :center, :bottom, :justify, :distributed are allowed

Parameters:

  • v (Any)

    The value validated



228
229
230
# File 'lib/axlsx/util/validators.rb', line 228

def self.validate_vertical_alignment(v)
  RestrictionValidator.validate :vertical_alignment, [:top, :center, :bottom, :justify, :distributed], v
end