Sha256: 6d95f196862cbac6991409d64fcdb16c97a25ab910d5178aa106248f93355415
Contents?: true
Size: 494 Bytes
Versions: 3
Compression:
Stored size: 494 Bytes
Contents
module OpenXml module DrawingML module Properties class SpaceBefore < SimplePropertyContainerProperty namespace :a tag :spcBef 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