# File lib/spreadsheet/format.rb, line 306 def align=(location = nil) return if location.nil? return if location.kind_of?(Fixnum) location.downcase! case location when 'left' @text_h_align = 1 when 'center', 'centre' @text_h_align = 2 when 'right' @text_h_align = 3 when 'fill' @text_h_align = 4 when 'justify' @text_h_align = 5 when 'merge' @text_h_align = 6 when 'top' @text_v_align = 0 when 'vcentre', 'vcenter' @text_v_align = 1 when 'bottom' @text_v_align = 2 when 'vjustify' @text_v_align = 3 end end