Module: Uniword::Properties::BooleanElement
- Included in:
- Customxml::ShowingPlaceholder, DocumentVariables::ReadOnly, Glossary::AutoText, Glossary::Equation, Glossary::TextBox, AdjustRightInd, AutoSpaceDE, AutoSpaceDN, Bold, BoldCs, Caps, ContextualSpacing, DoubleStrike, Emboss, Imprint, Italic, ItalicCs, KeepLines, KeepNext, NoProof, PageBreakBefore, QuickFormat, Shadow, SmallCaps, Strike, Vanish, WebHidden, WidowControl, SharedTypes::BooleanValue, SharedTypes::OnOff, Wordprocessingml::Emboss, Wordprocessingml::Imprint, Wordprocessingml::Outline, Wordprocessingml::Shadow
- Defined in:
- lib/uniword/properties/boolean_formatting.rb
Overview
OOXML boolean element mixin for value/val getter logic only. The val= setter must be defined AFTER attribute :val to override the generated setter.
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
11 12 13 |
# File 'lib/uniword/properties/boolean_formatting.rb', line 11 def value @val != "false" end |
#value=(v) ⇒ Object
15 16 17 |
# File 'lib/uniword/properties/boolean_formatting.rb', line 15 def value=(v) @val = v ? nil : "false" end |