Class: OpenXml::DrawingML::Properties::SpaceAfter
- Inherits:
-
SimplePropertyContainerProperty
- Object
- Properties::BooleanProperty
- SimpleBooleanProperty
- SimplePropertyContainerProperty
- OpenXml::DrawingML::Properties::SpaceAfter
- Defined in:
- lib/openxml/drawingml/properties/space_after.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ SpaceAfter
constructor
A new instance of SpaceAfter.
Methods inherited from SimpleBooleanProperty
Constructor Details
#initialize(value) ⇒ SpaceAfter
Returns a new instance of SpaceAfter.
13 14 15 16 17 |
# File 'lib/openxml/drawingml/properties/space_after.rb', line 13 def initialize(value) super() target_property = value.is_a?(String) && value =~ /%/ ? :spacing_percent= : :spacing_points= public_send(target_property, value) end |