Sha256: 18b17a821e46180acce13945ee436113b67dde929e1caf6c76160653befbcdb9

Contents?: true

Size: 284 Bytes

Versions: 9

Compression:

Stored size: 284 Bytes

Contents

module OpenXml
  module Docx
    module Properties
      class OnOffProperty < ValueProperty

        def ok_values
          [nil, :on, :off]
        end

        def to_xml(xml)
          xml["w"].public_send(tag, "w:val" => value) if value
        end

      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
openxml-docx-0.10.5 lib/openxml/docx/properties/on_off_property.rb
openxml-docx-0.10.4 lib/openxml/docx/properties/on_off_property.rb
openxml-docx-0.10.3 lib/openxml/docx/properties/on_off_property.rb
openxml-docx-0.10.2 lib/openxml/docx/properties/on_off_property.rb
openxml-docx-0.10.1 lib/openxml/docx/properties/on_off_property.rb
openxml-docx-0.10.0 lib/openxml/docx/properties/on_off_property.rb
openxml-docx-0.9.0 lib/openxml/docx/properties/on_off_property.rb
openxml-docx-0.8.0 lib/openxml/docx/properties/on_off_property.rb
openxml-docx-0.8.0.beta1 lib/openxml/docx/properties/on_off_property.rb