Method: Axlsx.validate_page_orientation
- Defined in:
- lib/axlsx/util/validators.rb
.validate_page_orientation(v) ⇒ Object
Requires that the value is one of :default, :landscape, or :portrait.
143 144 145 |
# File 'lib/axlsx/util/validators.rb', line 143 def self.validate_page_orientation(v) RestrictionValidator.validate "page_orientation", [:default, :landscape, :portrait], v end |