lib/openxml/docx/properties/east_asian_layout.rb in openxml-docx-0.9.0 vs lib/openxml/docx/properties/east_asian_layout.rb in openxml-docx-0.10.0

- old
+ new

@@ -1,20 +1,15 @@ module OpenXml module Docx module Properties class EastAsianLayout < ComplexProperty - attribute :combine, expects: :on_or_off - attribute :combine_brackets, expects: :valid_bracket - attribute :id, expects: :integer - attribute :vertical, expects: :on_or_off, displays_as: :vert - attribute :vertical_compress, expects: :on_or_off, displays_as: :vertCompress - VALID_BRACKETS = %i(angle curly none round square) - - private - - def valid_bracket(value) - valid_in? value, VALID_BRACKETS + with_namespace :w do + attribute :combine, expects: :on_or_off + attribute :combine_brackets, one_of: %i(angle curly none round square) + attribute :id, expects: :integer + attribute :vertical, expects: :on_or_off, displays_as: :vert + attribute :vertical_compress, expects: :on_or_off, displays_as: :vertCompress end end end end