Method: Spreadsheet::Format#align=
- Defined in:
- lib/spreadsheet/format.rb
#align=(location) ⇒ Object
Combined method for both horizontal and vertical alignment. Sets the first valid value (e.g. Format#align = :justify only sets the horizontal alignment. Use one of the aliases prefixed with :v if you need to disambiguate.)
This is essentially a backward-compatibility method and may be removed at some point in the future.
134 135 136 137 138 139 140 141 142 |
# File 'lib/spreadsheet/format.rb', line 134 def align= location self.horizontal_align = location rescue ArgumentError self.vertical_align = begin location rescue ArgumentError end end |