class OpenXml::Docx::Properties::OnOffProperty
Public Instance Methods
ok_values()
click to toggle source
# File lib/openxml/docx/properties/on_off_property.rb, line 6 def ok_values [true, false, :on, :off] # :on and :off are from the Transitional Spec end
to_xml(xml)
click to toggle source
# File lib/openxml/docx/properties/on_off_property.rb, line 10 def to_xml(xml) return xml["w"].public_send(tag) if value == true xml["w"].public_send(tag, "w:val" => value) end