Sha256: 01a3d8bdf5e73717475e6ca5f87b2574e72fd54090ad5935584846bdcb18dff4
Contents?: true
Size: 493 Bytes
Versions: 3
Compression:
Stored size: 493 Bytes
Contents
module OpenXml module DrawingML module Properties class SpaceAfter < SimplePropertyContainerProperty namespace :a tag :spcAft property_choice do value_property :spacing_percent value_property :spacing_points end def initialize(value) super() target_property = value =~ /%/ ? :spacing_percent= : :spacing_points= public_send(target_property, value) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems