Class: OpenXml::DrawingML::Properties::SpaceAfter

Inherits:
SimplePropertyContainerProperty show all
Defined in:
lib/openxml/drawingml/properties/space_after.rb

Instance Method Summary collapse

Methods inherited from SimpleBooleanProperty

#to_xml

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