Class: Rocx::Properties::BooleanProperty
- Inherits:
-
ValueProperty
- Object
- BaseProperty
- ValueProperty
- Rocx::Properties::BooleanProperty
- Defined in:
- lib/rocx/properties/boolean_property.rb
Direct Known Subclasses
AutoAdjustRightIndent, AutoSpaceDe, AutoSpaceDn, DoubleStrikethrough, NoProof, Outline, OverflowPunctuation, RtlGutter, Shadow, SmallCaps, Strikethrough
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, name, #name, #render?, tag, #tag
Constructor Details
This class inherits a constructor from Rocx::Properties::ValueProperty
Instance Method Details
#ok_values ⇒ Object
5 6 7 |
# File 'lib/rocx/properties/boolean_property.rb', line 5 def ok_values [nil, true, false] end |
#to_xml(xml) ⇒ Object
9 10 11 |
# File 'lib/rocx/properties/boolean_property.rb', line 9 def to_xml(xml) xml["w"].public_send(tag, "w:val" => value) if value end |