Class: OpenXml::Properties::BooleanProperty
- Inherits:
-
ValueProperty
- Object
- BaseProperty
- ValueProperty
- OpenXml::Properties::BooleanProperty
- Defined in:
- lib/openxml/properties/boolean_property.rb
Instance Attribute Summary
Attributes inherited from ValueProperty
Attributes inherited from BaseProperty
Instance Method Summary collapse
Methods inherited from ValueProperty
#initialize, #invalid_message, #render?, #valid?
Methods inherited from BaseProperty
#default_name, #default_tag, #initialize, #name, name, namespace, #namespace, #render?, tag, #tag, tag_is_one_of, #validate_tag
Constructor Details
This class inherits a constructor from OpenXml::Properties::ValueProperty
Instance Method Details
#ok_values ⇒ Object
5 6 7 |
# File 'lib/openxml/properties/boolean_property.rb', line 5 def ok_values [nil, true, false] end |
#to_xml(xml) ⇒ Object
9 10 11 |
# File 'lib/openxml/properties/boolean_property.rb', line 9 def to_xml(xml) super if value end |